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