force method
Lazily evaluates the function passed into the constructor.
Implementation
Future<T> force() async {
if (_isSet) {
return _val!;
}
_isSet = true;
_val = await _func();
return _val;
}
Lazily evaluates the function passed into the constructor.
Future<T> force() async {
if (_isSet) {
return _val!;
}
_isSet = true;
_val = await _func();
return _val;
}