withoutExtension method

String withoutExtension(
  1. String path
)

Removes a trailing extension from the last part of path.

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

Implementation

String withoutExtension(String path) => p.context.withoutExtension(path);