addListenerCallback method Null safety

void addListenerCallback(
  1. VoidCallback callback
)

Add void callback.

Implementation

void addListenerCallback(VoidCallback callback) {
  assert(callback != null, 'call back must be provided non-null');
  onCallbacks.add(callback);
}