failOptimization method

void failOptimization(
  1. String error
)

Implementation

void failOptimization(String error) {
  _isOptimizing = false;
  _error = error;
  notifyListeners();
}