action method

void action(
  1. String name,
  2. void callback(
    1. BuildContext
    )
)

Implementation

void action(String name, void Function(BuildContext) callback) {
  actions[name] = callback;
}