ConfigGrouping constructor
const
ConfigGrouping({
- required String name,
- @JsonKey.new(unknownEnumValue: ConfigKind.unknown) required ConfigKind kind,
- String? description,
- bool? setupCapable,
- @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;