ShadTimePickerTextEditingController.fromValue constructor

ShadTimePickerTextEditingController.fromValue(
  1. TextEditingValue? value, {
  2. TextStyle? placeholderStyle,
  3. int min = 0,
  4. int max = 59,
})

Implementation

ShadTimePickerTextEditingController.fromValue(
  TextEditingValue? value, {
  this.placeholderStyle,
  this.min = 0,
  this.max = 59,
}) : 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.fromValue(value ?? TextEditingValue.empty);