fixupValue method

  1. @protected
double fixupValue(
  1. String value
)
inherited

Implementation

@protected
double fixupValue(String value) {
  final v = _parseValue(value);
  if (value.isEmpty || (v < widget.min || v > widget.max)) {
    // will trigger notify to _updateValue()
    _controller.text = _formatText(_cachedValue);
  } else {
    _cachedValue = _value;
  }
  return _cachedValue;
}