retry method

Future<void> retry()

Retry the last failed operation

Implementation

Future<void> retry() async {
  if (_state.value.isError && _recoveryFunction != null) {
    await execute(_recoveryFunction!);
  }
}