TextField constructor

TextField(
  1. [String text = '',
  2. 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);
}