mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-07-30 18:28:48 -04:00
flutter work
This commit is contained in:
parent
a3e43ef68b
commit
b8d684dbee
12 changed files with 447 additions and 15 deletions
|
@ -19,6 +19,14 @@ Future<T> _wrapApiPromise<T>(Object p) {
|
|||
}
|
||||
|
||||
class VeilidJS implements Veilid {
|
||||
@override
|
||||
void configureVeilidPlatform(Map<String, dynamic> platformConfigJson) {
|
||||
var platformConfigJsonString =
|
||||
jsonEncode(platformConfigJson, toEncodable: veilidApiToEncodable);
|
||||
js_util.callMethod(
|
||||
wasm, "configure_veilid_platform", [platformConfigJsonString]);
|
||||
}
|
||||
|
||||
@override
|
||||
Stream<VeilidUpdate> startupVeilidCore(VeilidConfig config) async* {
|
||||
var streamController = StreamController<VeilidUpdate>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue