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