TextEditingController.fromValue constructor

TextEditingController.fromValue(TextEditingValue value)

Creates a controller for an editable text field from an initial TextEditingValue.

This constructor treats a null value argument as if it were TextEditingValue.empty.

Implementation

TextEditingController.fromValue(TextEditingValue value)
  : super(value ?? TextEditingValue.empty);