getBasenameWithoutExtension function

String getBasenameWithoutExtension(
  1. 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 getBasenameWithoutExtension(String path) =>
    basenameWithoutExtension(path);