FormattedTextEditingController.fromValue constructor

FormattedTextEditingController.fromValue(
  1. TextEditingValue? value, {
  2. List<FormattedTextFormatter>? formatters,
})

Implementation

FormattedTextEditingController.fromValue(
  TextEditingValue? value, {
  this.formatters,
})  : assert(
        value == null ||
            !value.composing.isValid ||
            value.isComposingRangeValid,
        'New TextEditingValue $value has an invalid non-empty composing range '
        '${value.composing}. It is recommended to use a valid composing range, '
        'even for readonly text fields',
      ),
      super(text: value?.text);