veilid/veilid-flutter/lib/veilid_plugin_stub_web.dart
Christien Rioux f91a350bfc lint work
2023-07-26 14:20:17 -04:00

18 lines
533 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}'",
);
}
}