Typed selection option with a value, text and optional group or icon.
TxItem
| Parameter | Type | Default | Meaning |
|---|---|---|---|
| value | T | required | Current input/option value. |
| text | String | required | Text to display. |
| disabled | bool | false | Disables interaction. |
| group | String? | null | Group descriptors or group name. |
| icon | IconData? | null | Action icon. |
import 'package:tecexpress/tecexpress.dart';
Future<void> example() async {
const option = TxItem(value: 1, text: 'One');
print(option.value);
}