Preset constructor
const
Preset({
- required String id,
- List<
PresetField> fields = const [], - List<
PresetField> moreFields = const [], - bool onArea = true,
- required Map<
String, String> addTags, - Map<
String, String?> removeTags = const {}, - required String name,
- String? subtitle,
- MultiIcon? icon,
- LocationSet? locationSet,
- Map<
String, dynamic> ? fieldData, - PresetType type = PresetType.normal,
- bool noStandard = false,
Implementation
const Preset({
required this.id,
this.fields = const [],
this.moreFields = const [],
this.onArea = true,
required this.addTags,
this.removeTags = const {},
required this.name,
String? subtitle,
this.icon,
this.locationSet,
this.fieldData,
this.type = PresetType.normal,
this.noStandard = false,
}) : _subtitle = subtitle;