FluentCommand constructor

const FluentCommand({
  1. required String id,
  2. required String label,
  3. required FluentCommandCallback execute,
  4. FluentCommandPredicate? canExecute,
  5. List<FluentKeyBinding> keyBindings = const [],
  6. String? undoDescription,
  7. 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,
});