subtitleSmall static method

TextStyle subtitleSmall({
  1. Variants? variant,
  2. Color? color,
  3. double? fontSize,
})

Returns the smaller version of the subtitle text style based on the provided variant. The default variant is Variants.one.

Implementation

static TextStyle subtitleSmall({
  Variants? variant,
  Color? color,
  double? fontSize,
}) {
  switch (variant) {
    case Variants.one:
      return _subtitleVariantOne(color: color, fontSize: fontSize ?? 54);
    case Variants.two:
      return _subtitleVariantTwo(color: color, fontSize: fontSize ?? 54);
    case _:
      return _subtitleVariantOne(color: color, fontSize: fontSize ?? 54);
  }
}