actions property

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

A map of Intent keys to Action<Intent> objects that defines which actions this widget knows about.

For performance reasons, it is recommended that a pre-built map is passed in here (e.g. a final variable from your widget class) instead of defining it inline in the build function.

Implementation

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