file_ names
The file name '{0}' isn't a lower_case_with_underscores identifier.
Description
#
The analyzer produces this diagnostic when the name of a
.dart
file
doesn't use lower_case_with_underscores.
Example
#
A file named
SliderMenu.dart
produces this diagnostic because the file
name uses the UpperCamelCase convention.
Common fixes
#
Rename the file to use the lower_case_with_underscores convention, such as
slider_menu.dart
.
Unless stated otherwise, the documentation on this site reflects Dart 3.9.2. Page last updated on 2025-9-1. View source or report an issue.