IButtonBuilder constructor

IButtonBuilder(
  1. String label,
  2. ComponentStyle style, {
  3. bool disabled = false,
  4. IEmoji? emoji,
})

Creates instance of IButtonBuilder

Implementation

IButtonBuilder(this.label, this.style, {this.disabled = false, this.emoji}) {
  if (this.label.length > 80) {
    throw ArgumentError("Label for Button cannot have more than 80 characters");
  }
}