toggle option

This commit is contained in:
open-trade
2020-11-20 02:12:48 +08:00
parent 090f56b9f5
commit d9cbd4230a
3 changed files with 90 additions and 53 deletions

View File

@@ -271,7 +271,7 @@ class FFI {
_setByName(Utf8.toUtf8(name), Utf8.toUtf8(value));
}
static String getByName(String name, {String arg = ''}) {
static String getByName(String name, [String arg = '']) {
var p = _getByName(Utf8.toUtf8(name), Utf8.toUtf8(arg));
assert(p != nullptr && p != null);
var res = Utf8.fromUtf8(p);