TextField([String text, TextFormat textFormat ])

Source

TextField([String text, TextFormat textFormat]) {

  this.text = (text != null) ? text : "";
  this.defaultTextFormat = (textFormat != null) ? textFormat : new TextFormat("Arial", 12, 0x000000);

  this.onKeyDown.listen(_onKeyDown);
  this.onTextInput.listen(_onTextInput);
  this.onMouseDown.listen(_onMouseDown);
}