map<TResult extends Object?> method
TResult
map<TResult extends Object?>({
- required TResult async(
- StatisticalGraphAsync value
- required TResult data(
- StatisticalGraphData value
- required TResult error(
- StatisticalGraphError value
Implementation
TResult map<TResult extends Object?>({
required TResult Function(StatisticalGraphAsync value) async,
required TResult Function(StatisticalGraphData value) data,
required TResult Function(StatisticalGraphError value) error,
}) {
switch (getConstructor()) {
case StatisticalGraphAsync.constructor:
return async.call(this as StatisticalGraphAsync);
case StatisticalGraphData.constructor:
return data.call(this as StatisticalGraphData);
case StatisticalGraphError.constructor:
return error.call(this as StatisticalGraphError);
}
throw StateError('not handled type Generator');
}