onSuccess abstract method

void onSuccess(
  1. void callback(
    1. 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);