mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
18 lines
536 B
Dart
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}\'',
|
|
);
|
|
}
|
|
}
|