isValidLineHeightValue static method

bool isValidLineHeightValue(
  1. String value
)

Implementation

static bool isValidLineHeightValue(String value) {
  return CSSLength.isNonNegativeLength(value) ||
      CSSPercentage.isNonNegativePercentage(value) ||
      value == 'normal' ||
      double.tryParse(value) != null;
}