TextField constructor

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