CallbackAction<T extends Intent> constructor Null safety

CallbackAction<T extends Intent>(
  1. {required OnInvokeCallback<T> onInvoke}
)

A constructor for a CallbackAction.

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

Implementation

CallbackAction({required this.onInvoke}) : assert(onInvoke != null);