handleMethodCall method

Future handleMethodCall(
  1. MethodCall call
)

Implementation

Future<dynamic> handleMethodCall(MethodCall call) async {
  switch (call.method) {
    case 'remove':
      try {
        removeSplashFromWeb();
      } catch (e) {
        throw Exception(
          'Did you forget to run "dart run flutter_native_splash:create"? \n Could not run the JS command removeSplashFromWeb()',
        );
      }
      return;
    default:
      throw PlatformException(
        code: 'Unimplemented',
        details:
            "flutter_native_splash for web doesn't implement '${call.method}'",
      );
  }
}