removeOnPlatformViewCreatedListener method Null safety

void removeOnPlatformViewCreatedListener(
  1. PlatformViewCreatedCallback listener
)

Removes a callback added with addOnPlatformViewCreatedListener.

Implementation

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