actions property

Map<String, dynamic> actions
final

The action map that will be displayed in the inspector. It can be nested. One action can be either a void Function(Ref) or an InspectorAction.

Example: actions: { 'Counter': { 'Increment': (ref) => ref.read(counterProvider).increment(), }, },

Implementation

final Map<String, dynamic> actions;