mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-12-30 09:46:55 -06:00
18 lines
533 B
Dart
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}'",
|
|
);
|
|
}
|
|
}
|