onSuccess method

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

Implementation

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