isValidFontSizeValue static method

bool isValidFontSizeValue(
  1. String value
)

Implementation

static bool isValidFontSizeValue(String value) {
  return CSSLength.isNonNegativeLength(value) ||
      value == 'xx-small' ||
      value == 'x-small' ||
      value == 'small' ||
      value == 'medium' ||
      value == 'large' ||
      value == 'x-large' ||
      value == 'xx-large' ||
      value == 'xxx-large' ||
      value == 'larger' ||
      value == 'smaller';
}