basenameWithoutExtension function

String basenameWithoutExtension (String path)

Gets the part of path after the last separator, and without any trailing file extension.

p.basenameWithoutExtension('path/to/foo.dart'); // -> 'foo'

Trailing separators are ignored.

p.basenameWithoutExtension('path/to/foo.dart/'); // -> 'foo'

Implementation

String basenameWithoutExtension(String path) =>
    context.basenameWithoutExtension(path);