setBoolean method

void setBoolean(
  1. Object? value
)

Implementation

void setBoolean(Object? value) {
  if (!isBoolean) throw StateError('Not a boolean attribute');
  setValue(value);
}