Context/sheet/FAB action with an ID, text and optional nested actions.
TxAction
| Parameter | Type | Default | Meaning |
|---|---|---|---|
| id | Object | required | Unique stable ID. |
| text | String | required | Text to display. |
| icon | IconData? | null | Action icon. |
| disabled | bool | false | Disables interaction. |
| destructive | bool | false | Marks a destructive action. |
| items | List<TxAction> | const [] | Entries; replaced by dataSource when bound. |
| separator | bool | false | Marks a menu separator. |
import 'package:tecexpress/tecexpress.dart';
Future<void> example() async {
const action = TxAction(id: 'copy', text: 'Copy');
print(action.id);
}