Preset constructor

const Preset({
  1. required String id,
  2. List<PresetField> fields = const [],
  3. List<PresetField> moreFields = const [],
  4. bool onArea = true,
  5. required Map<String, String> addTags,
  6. Map<String, String?> removeTags = const {},
  7. required String name,
  8. String? subtitle,
  9. MultiIcon? icon,
  10. LocationSet? locationSet,
  11. Map<String, dynamic>? fieldData,
  12. PresetType type = PresetType.normal,
  13. 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;