0

I am Working in Vscode since 2020 and i never seen this type of errror that's telling me that "The name Anonymous.dart is not valid as a file or folder name.Please choose a different name."

Note:-After trying for few times it's now working and it created the file with name "Anonymous.dart".

Here is Image:-

enter image description here

I want to curious to know the Reason Behind This

Thanks In Advance..

MindCoder
  • 76
  • 11

1 Answers1

1

Effective Dart recommends using lowercase_with_underscores file names.

There is no deeper reason behind it. It works and is safe whereas uppercase letters or spaces might cause trouble on some operating systems. More on this in https://stackoverflow.com/a/7273448/669294

passsy
  • 4,923
  • 4
  • 38
  • 63