onPlatformViewCreated method

Future<void> onPlatformViewCreated(
  1. int viewId
)

viewId - the id of view that is generated by the platform This method will be called after the platform view has been created

Implementation

Future<void> onPlatformViewCreated(int viewId) async {
  _viewId = viewId;
  if (autoInitialize) {
    await initialize();
  }
  _isReadyToInitialize = true;
}