CallbackAction constructor

const CallbackAction(
  1. LocalKey intentKey,
  2. {@required OnInvokeCallback onInvoke}
)

A const constructor for an Action.

The intentKey and onInvoke parameters must not be null. The onInvoke parameter is required.

Implementation

const CallbackAction(LocalKey intentKey, {@required this.onInvoke})
    : assert(onInvoke != null),
      super(intentKey);