findAction<T extends Intent> method
Finds the Action bound to the given intent type T in the given context.
Creates a dependency on the Actions widget that maps the bound action so that
if the actions change, the context will be rebuilt and find the updated action.
The intent
argument supplies the type of the intent to look for action.
If no Actions widget surrounds the given context, this function will assert in debug mode,
and throw an exception in release mode.
Example:
Action<SomeIntent> action = context.findAction(SomeIntent());
Implementation
Action<T> findAction<T extends Intent>(T intent) =>
Actions.find(this, intent: intent);