when<R extends Object?> method

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

Implementation

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