handleMethod method Null safety

Future handleMethod(
  1. MethodCall call
)

Implementation

Future<dynamic> handleMethod(MethodCall call) async {
  switch (call.method) {
    case "onBrowserCreated":
      this._isOpened = true;
      this.pullToRefreshController?.initMethodChannel(id);
      onBrowserCreated();
      break;
    case "onExit":
      this._isOpened = false;
      onExit();
      break;
    default:
      return webViewController.handleMethod(call);
  }
}