28 lines
600 B
Dart
28 lines
600 B
Dart
|
|
class SelectionPanelEntry<T> {
|
||
|
|
final T? value;
|
||
|
|
final String? label;
|
||
|
|
final String? subtitle;
|
||
|
|
final String? badge;
|
||
|
|
final bool isActive;
|
||
|
|
final bool isLoading;
|
||
|
|
final bool isDivider;
|
||
|
|
|
||
|
|
const SelectionPanelEntry.item({
|
||
|
|
required T this.value,
|
||
|
|
required String this.label,
|
||
|
|
this.subtitle,
|
||
|
|
this.badge,
|
||
|
|
this.isActive = false,
|
||
|
|
this.isLoading = false,
|
||
|
|
}) : isDivider = false;
|
||
|
|
|
||
|
|
const SelectionPanelEntry.divider()
|
||
|
|
: value = null,
|
||
|
|
label = null,
|
||
|
|
subtitle = null,
|
||
|
|
badge = null,
|
||
|
|
isActive = false,
|
||
|
|
isLoading = false,
|
||
|
|
isDivider = true;
|
||
|
|
}
|