withError method

void withError(
  1. String error
)

Implementation

void withError(String error) {
  this.error = error;
}