clearError method

void clearError()

Implementation

void clearError() {
  final error = state;
  if (error != null) {
    state = null;
  }
}