Button constructor

Button(
  1. Element element, {
  2. Map<String, String>? texts,
})

Construct a button object, wired to element. *

    • texts - determines Button text corresponding to the state.

Implementation

Button(Element element, {Map<String, String>? texts}) :
this.texts = _copy(DEFAULT_TEXTS, texts),
super(element, _name);