FluentCommand constructor
const
FluentCommand({
- required String id,
- required String label,
- required FluentCommandCallback execute,
- FluentCommandPredicate? canExecute,
- List<
FluentKeyBinding> keyBindings = const [], - String? undoDescription,
- bool forceNewUndoAction = false,
Implementation
const FluentCommand({
required this.id,
required this.label,
required this.execute,
this.canExecute,
this.keyBindings = const [],
this.undoDescription,
this.forceNewUndoAction = false,
});