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
  • 74
  • 12

2 Answers2

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
  • 5,162
  • 4
  • 39
  • 65
0

You should type as manually instead of copy paste. Or at least paste and remove (.ts) then type. It will accept .

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 12 '22 at 11:47