resolveWith<R> method
Resolves this instance with resolver
result.
Implementation
FutureOr<R> resolveWith<R>(FutureOr<R> Function() resolver) {
var self = this;
if (self is Future<T>) {
return self.then((r) => resolver());
} else {
return resolver();
}
}