computedValue property

  1. @override
double get computedValue
override

Implementation

@override
double get computedValue {
  dynamic text = value.computedValue('');
  if (text == null) return 0;
  if (CSSLength.isLength(text)) {
    return CSSLength.parseLength(text, _renderStyle).computedValue;
  }

  double? num = double.tryParse(text);
  if (num != null) {
    return num;
  }

  return 0;
}