TextField constructor
- [String text,
- TextFormat textFormat]
Implementation
TextField([String text, TextFormat textFormat]) {
this.text = (text != null) ? text : '';
defaultTextFormat =
(textFormat != null) ? textFormat : TextFormat('Arial', 12, 0x000000);
onKeyDown.listen(_onKeyDown);
onTextInput.listen(_onTextInput);
onMouseDown.listen(_onMouseDown);
}