addOnPlatformViewCreatedListener method Null safety

void addOnPlatformViewCreatedListener(
  1. PlatformViewCreatedCallback listener
)

Adds a callback that will get invoke after the platform view has been created.

Implementation

void addOnPlatformViewCreatedListener(PlatformViewCreatedCallback listener) {
  assert(listener != null);
  assert(_state != _AndroidViewState.disposed);
  _platformViewCreatedCallbacks.add(listener);
}