onPlatformViewCreated method

Future<void> onPlatformViewCreated(
  1. dynamic id
)

Implementation

Future<void> onPlatformViewCreated(id) async {
  MethodChannel _channel =
      new MethodChannel('com.airship.flutter/InboxMessageView_$id');
  _channel.setMethodCallHandler(methodCallHandler);
  _channel.invokeMethod('loadMessage', messageId).catchError((error) {
    if (onLoadError != null) {
      onLoadError!(error);
    }
  });
}