onPlatformViewCreated method

  1. @override
void onPlatformViewCreated(
  1. String viewType,
  2. int id
)
override

Called when the native view has been created.

Implementation

@override
void onPlatformViewCreated(String viewType, int id) {
  final methodChannel = MethodChannel('$viewType/$id/method');
  _methodChannelCompleter.complete(methodChannel);
  onCreate?.call(methodChannel);
}