setAttribute method

void setAttribute(
  1. String? attribute
)

Sets the attribute name for error messages.

Implementation

void setAttribute(String? attribute) {
  this.attribute = attribute;
}