onSuccess method

  1. @override
void onSuccess(
  1. void callback(
    1. T value
    )
)
override

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

@override
void onSuccess(void Function(T value) callback) {}