ConfigEntry constructor

ConfigEntry({
  1. required String path,
  2. required String type,
  3. List<String> exclusions = const [],
  4. bool recursive = false,
})

Implementation

ConfigEntry({
  required this.path,
  required this.type,
  this.exclusions = const [],
  this.recursive = false,
}) {
  // Validate that type is a builtin type
  if (!BUILTIN_TYPES.contains(type)) {
    throw ArgumentError(
      'Invalid asset type "$type". Must be one of: ${BUILTIN_TYPES.join(', ')}',
    );
  }
}