map<TResult extends Object?> method
TResult
map<TResult extends Object?>({
- required TResult local(
- InputBackgroundLocal value
- required TResult previous(
- InputBackgroundPrevious value
- required TResult remote(
- InputBackgroundRemote value
Implementation
TResult map<TResult extends Object?>({
required TResult Function(InputBackgroundLocal value) local,
required TResult Function(InputBackgroundPrevious value) previous,
required TResult Function(InputBackgroundRemote value) remote,
}) {
switch (getConstructor()) {
case InputBackgroundLocal.constructor:
return local.call(this as InputBackgroundLocal);
case InputBackgroundPrevious.constructor:
return previous.call(this as InputBackgroundPrevious);
case InputBackgroundRemote.constructor:
return remote.call(this as InputBackgroundRemote);
}
throw StateError('not handled type Generator');
}