invoke method

  1. @protected
void invoke (
  1. FocusNode node,
  2. covariant Intent intent

Called when the action is to be performed.

This is called by the ActionDispatcher when an action is accepted by a FocusNode by returning true from its onAction callback, or when an action is invoked using ActionDispatcher.invokeAction.

This method is only meant to be invoked by an ActionDispatcher, or by subclasses.

Actions invoked directly with ActionDispatcher.invokeAction may receive a null node. If the information available from a focus node is needed in the action, use ActionDispatcher.invokeFocusedAction instead.


void invoke(FocusNode node, covariant Intent intent);