getValueDefinition method
Output
getValueDefinition(
- bool reevaluatingNeeded, [
- ValuableContext? context = const ValuableContext()
override
This method should be redefined in ever sub-classes to determine how works the method getValue
Implementation
@override
@protected
Output getValueDefinition(bool reevaluatingNeeded,
[ValuableContext? context = const ValuableContext()]) {
Output retour;
if (_isComplete) {
if (_isError) {
retour = errorValue.call(context, _error, _stackTrace);
} else {
retour = dataValue.call(context, _resultValue);
}
} else {
retour = noDataValue.call(context);
}
return retour;
}