onSuccess method
Implementation
Future<NEResult<T>> onSuccess(FutureOr Function(T) action) {
return then<NEResult<T>>((value) async {
if (value.isSuccess()) {
try {
await action(value.nonNullData);
} catch (e, _) {
assert(() {
throw e;
}());
}
}
return value;
});
}