partialMap method
- @Deprecated('Use `mapOrNull` instead. Will be removed by next release.')
- void doNothing(
- EditFormUIActionDoNothing doNothing
- void orElse(
- EditFormUIAction editFormUIAction
Implementation
@Deprecated('Use `mapOrNull` instead. Will be removed by next release.')
void partialMap({
void Function(EditFormUIActionDoNothing doNothing)? doNothing,
void Function(EditFormUIAction editFormUIAction)? orElse,
}) {
final editFormUIAction = this;
if (editFormUIAction is EditFormUIActionDoNothing) {
if (doNothing != null) {
doNothing(editFormUIAction);
} else if (orElse != null) {
orElse(editFormUIAction);
}
} else {
throw AssertionError();
}
}