ActionListener constructor Null safety

const ActionListener(
  1. {Key? key,
  2. required ActionListenerCallback listener,
  3. required Action<Intent> action,
  4. required Widget child}

Create a const ActionListener.

The listener, action, and child arguments must not be null.


const ActionListener({
  Key? key,
  required this.listener,
  required this.action,
  required this.child,
})  : assert(listener != null),
      assert(action != null),
      assert(child != null),
      super(key: key);