more web api

This commit is contained in:
open-trade
2022-01-26 19:00:23 +08:00
parent 3d77365edc
commit 16218a731b
7 changed files with 34 additions and 32 deletions

View File

@@ -10,6 +10,10 @@ class PlatformFFI {
// return Uint8List.sublistView(ref.data.asTypedList(ref.len));
}
static Future<String> getVersion() async {
return '';
}
static String getByName(String name, [String arg = '']) {
return js.context.callMethod('getByName', [name, arg]);
}
@@ -20,6 +24,7 @@ class PlatformFFI {
static Future<Null> init() async {
isWeb = true;
js.context.callMethod('init');
}
}