ConfigGrouping constructor

const ConfigGrouping({
  1. required String name,
  2. @JsonKey.new(unknownEnumValue: ConfigKind.unknown) required ConfigKind kind,
  3. String? description,
  4. bool? setupCapable,
  5. @Default.new([]) List<ConfigDefinition> items,
})

Implementation

const factory ConfigGrouping({
  /// [name] is the name of the grouping.
  /// This is the translation key.
  required String name,

  /// [kind] is the kind of the grouping.
  @JsonKey(unknownEnumValue: ConfigKind.unknown) required ConfigKind kind,

  /// [description] is the fallback name of the grouping, when the translation is not available.
  /// This is the translation key.
  String? description,

  /// [setupCapable] is the flag that indicates if the grouping is capable of being set up.
  bool? setupCapable,

  /// [items] is the list of items of the grouping.
  @Default([]) List<ConfigDefinition> items,
}) = _ConfigGrouping;