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