basenameWithoutExtension method Null safety
- String path
Gets the part of path
after the last separator on the context's
platform, and without any trailing file extension.
context.basenameWithoutExtension('path/to/foo.dart'); // -> 'foo'
Trailing separators are ignored.
context.basenameWithoutExtension('path/to/foo.dart/'); // -> 'foo'
Implementation
String basenameWithoutExtension(String path) =>
_parse(path).basenameWithoutExtension;