onPlatformViewCreated method

Future<void> onPlatformViewCreated(
  1. dynamic id
)

Implementation

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