functionFutureOr static method
dynamic
functionFutureOr(
- dynamic fn()
Implementation
static dynamic functionFutureOr(Function() fn) {
final ret = fn();
return ret is Future ? Promise.futureToPromise(ret) : ret;
}