resolveValue method
Object?
resolveValue({
- QueryElementProvider? elementProvider,
- IntlMessageResolver? intlMessageResolver,
Resolve this DSX object value.
- If isFunction, calls it with
parameters
.
Implementation
Object? resolveValue(
{QueryElementProvider? elementProvider,
IntlMessageResolver? intlMessageResolver}) {
if (_resolvedValue != null) {
assert(_resolvedElement != null);
return _resolvedValue;
}
if (isFunction) {
var value = call();
setResolvedValue(value);
return value;
} else if (isFuture) {
assert(_future == null);
var future = object as Future;
future.then(setResolvedValue);
_future = future;
setResolvedValue('...');
return _resolvedValue;
} else {
var value = object;
setResolvedValue(value);
return value;
}
}