veilid/veilid-flutter/lib/veilid_plugin_stub_web.dart
2022-03-15 23:02:24 -04:00

18 lines
536 B
Dart

import 'dart:async';
import 'package:flutter/services.dart';
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
/// A stub web implementation of the Veilid plugin
/// Because everything is done with FFI or WASM, we don't use this interface
class VeilidPluginStubWeb {
static void registerWith(Registrar registrar) {}
Future<dynamic> handleMethodCall(MethodCall call) async {
throw PlatformException(
code: 'Unimplemented',
details: 'Veilid for Web doesn\'t implement \'${call.method}\'',
);
}
}