Typisierte Auswahloption mit Wert, Text und optionaler Gruppe oder Symbol.
TxItem
| Parameter | Typ | Standard | Bedeutung |
|---|---|---|---|
| value | T | erforderlich | Aktueller Eingabe-/Optionswert. |
| text | String | erforderlich | Anzuzeigender Text. |
| disabled | bool | false | Sperrt die Interaktion. |
| group | String? | null | Gruppierungsbeschreibungen beziehungsweise Gruppenname. |
| icon | IconData? | null | Symbol der Aktion. |
import 'package:tecexpress/tecexpress.dart';
Future<void> example() async {
const option = TxItem(value: 1, text: 'One');
print(option.value);
}