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