partialMap method
Implementation
@Deprecated('Use `mapOrNull` instead. Will be removed by next release.')
void partialMap({
void Function(EditFormUIStateShowLoading showLoading)? showLoading,
void Function(EditFormUIStateShowContent showContent)? showContent,
void Function(EditFormUIState editFormUIState)? orElse,
}) {
final editFormUIState = this;
if (editFormUIState is EditFormUIStateShowLoading) {
if (showLoading != null) {
showLoading(editFormUIState);
} else if (orElse != null) {
orElse(editFormUIState);
}
} else if (editFormUIState is EditFormUIStateShowContent) {
if (showContent != null) {
showContent(editFormUIState);
} else if (orElse != null) {
orElse(editFormUIState);
}
} else {
throw AssertionError();
}
}