InputFile constructor

InputFile({
  1. String path = '',
  2. String absolutePath = '',
  3. String relativePath = '',
  4. String name = '',
  5. List<String> parts = const [],
})

Implementation

InputFile(
    {this.path = '',
    this.absolutePath = '',
    this.relativePath = '',
    this.name = '',
    this.parts = const []}) {
  parts = path.split('/');
  parts.removeLast();

  name = path.split('/')[parts.length].replaceAll(dartSuffix, '');
}