nameWithoutExtension property
String
get
nameWithoutExtension
Gets the part of path after the last separator, and without any trailing file extension.
File('path/to/foo.dart').nameWithoutExtension; // -> 'foo'
Trailing separators are ignored.
File('path/to/foo.dart/').nameWithoutExtension; // -> 'foo'
Implementation
String get nameWithoutExtension => path_helper.basenameWithoutExtension(path);