map<R extends Object?> method

R map<R extends Object?>({
  1. required R doNothing(
    1. EditFormUIActionDoNothing doNothing
    ),
})

Implementation

R map<R extends Object?>({
  required R Function(EditFormUIActionDoNothing doNothing) doNothing,
}) {
  final editFormUIAction = this;
  if (editFormUIAction is EditFormUIActionDoNothing) {
    return doNothing(editFormUIAction);
  } else {
    throw AssertionError();
  }
}