ShadTimePickerTextEditingController.fromValue constructor
ShadTimePickerTextEditingController.fromValue(
- TextEditingValue? value, {
- TextStyle? placeholderStyle,
- int min = 0,
- int max = 59,
Creates a ShadTimePickerTextEditingController from a TextEditingValue.
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);