Removes a trailing extension from the last part of path.
path
p.withoutExtension('path/to/foo.dart'); // -> 'path/to/foo'
String withoutExtension(String path) => p.context.withoutExtension(path);