onSuccess abstract method
void
onSuccess(
- void callback(
- T value
Calls the provided callback if the result is a success.
callback
is the function to be called with the value if the result is a success.
Implementation
void onSuccess(void Function(T value) callback);