onSuccess method

NEResult<void> onSuccess(
  1. void action()
)

Implementation

NEResult<void> onSuccess(void Function() action) {
  if (isSuccess()) {
    action();
  }
  return this;
}