bool isFulfilledPromise(int idx) { return "true" == evaluate("FLUTTER_NATIVEJS_IS_FULLFILLED_PROMISE($idx)").stringResult; }