TemplateBarrel.fromMap constructor
TemplateBarrel.fromMap(
- Map map
Creates a template barrel configuration from the provided map.
Implementation
factory TemplateBarrel.fromMap(Map<dynamic, dynamic> map) {
return TemplateBarrel(
enabled: map['enabled'] ?? true,
file: map['file']?.toString() ?? 'xcore.dart',
exports: List<String>.from(map['exports'] ?? const []),
ignore: List<String>.from(map['ignore'] ?? const []),
);
}