isValidFontVariantCss21Value static method

bool isValidFontVariantCss21Value(
  1. String value
)

Implementation

static bool isValidFontVariantCss21Value(String value) {
  // The CSS2.1 font-variant property used in the `font` shorthand only accepts
  // 'normal' or 'small-caps'.
  return value == 'normal' || value == 'small-caps';
}