PartFile constructor

PartFile({
  1. required List<String> path,
  2. required String content,
})

Implementation

PartFile({
  required this.path,
  required super.content,
})  : assert(path.isNotEmpty, 'Path cannot be empty.'),
      assert(!path.last.endsWith('.dart'), 'Path must not end with .dart.'),
      super(
        basename: p.joinAll(path),
      );