FileKind constructor

FileKind(
  1. String name
)

Implementation

factory FileKind(String name) {
  switch (name) {
    case 'LIBRARY':
      return LIBRARY;
    case 'PART':
      return PART;
  }
  throw Exception('Illegal enum value: $name');
}