fontVariant property

  1. @override
String get fontVariant
override

Implementation

@override
String get fontVariant {
  // Get style from self or closest parent if specified style property is not set
  // due to style inheritance.
  if (_fontVariant == null && parent != null) {
    return parent!.fontVariant;
  }

  return _fontVariant ?? NORMAL;
}
set fontVariant (String? value)

Implementation

set fontVariant(String? value) {
  if (_fontVariant == value) return;
  _fontVariant = value;
  // Update all the children text with specified style property not set due to style inheritance.
  _markChildrenTextNeedsLayout(this, FONT_VARIANT);
}