actions property

Map<Type, Action<Intent>>? actions
final

The default map of intent keys to actions for the application.

By default, this is the output of WidgetsApp.defaultActions, called with defaultTargetPlatform. Specifying actions for an app overrides the default, so if you wish to modify the default actions, you can call WidgetsApp.defaultActions and modify the resulting map, passing it as the actions for this app. You may also add to the bindings, or override specific bindings for a widget subtree, by adding your own Actions widget. See also:

  • The shortcuts parameter, which defines the default set of shortcuts for the application.
  • The Shortcuts widget, which defines a keyboard mapping.
  • The Actions widget, which defines the mapping from intent to action.
  • The Intent and Action classes, which allow definition of new actions.

Implementation

final Map<Type, Action<Intent>>? actions;