onSuccess abstract method
Performs the given action on the encapsulated value if this instance represents success. Returns the original Result unchanged.
Implementation
Result<S, F> onSuccess(
void Function(S success) onSuccess,
);
Performs the given action on the encapsulated value if this instance represents success. Returns the original Result unchanged.
Result<S, F> onSuccess(
void Function(S success) onSuccess,
);