onPlatformViewCreated method
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;
// do we need to initialize controller after view becomes ready?
if (autoInitialize) {
await Future.delayed(Duration(seconds: 1));
await initialize();
}
_isReadyToInitialize = true;
}