subtitle static method
Returns the subtitle text style based on the provided variant. The default variant is Variants.one.
Implementation
static TextStyle subtitle({
Variants? variant,
Color? color,
double? fontSize,
}) {
switch (variant) {
case Variants.one:
return _subtitleVariantOne(color: color, fontSize: fontSize);
case Variants.two:
return _subtitleVariantTwo(color: color, fontSize: fontSize);
case _:
return _subtitleVariantOne(color: color, fontSize: fontSize);
}
}