FutureValuable<Output, Res>.values constructor
FutureValuable<Output, Res>.values (})
Constructor to simply map result value as Valuable value
Output
must be super type or type of Res
Implementation
FutureValuable.values(Valuable<Future<Res>> future,
{required Output noDataValue, required Output errorValue})
: this(future,
dataValue: (ValuableContext? context, Res result) =>
result as Output,
noDataValue: (ValuableContext? context) => noDataValue,
errorValue: (ValuableContext? context, Object error,
StackTrace stackTrace) =>
errorValue);