dart uses which case
Dart and Flutter Guidelines >>>>>
DO name types using UpperCamelCase:
class SliderMenu { ... }
class HttpRequest { ... }
typedef Predicate<T> = bool Function(T value);
class Foo {
const Foo([Object? arg]);
}
@Foo(anArg)
class A { ... }
@Foo()
class B { ... }
DO name extensions using UpperCamelCase:
extension MyFancyList<T> on List<T> { ... }
extension SmartIterable<T> on Iterable<T> { ... }
DO name libraries, packages, directories, and source files using
lowercase_with_underscores:
library peg_parser.source_scanner;
import 'file_system.dart';
import 'slider_menu.dart';
More information here: https://dart.dev/guides/language/effective-dart/style