titleSmall static method
Returns the smaller version of the title text style based on the provided variant. The default variant is Variants.one.
Implementation
static TextStyle titleSmall({
Variants? variant,
Color? color,
double? fontSize,
}) {
switch (variant) {
case Variants.one:
return _titleVariantOne(color: color, fontSize: fontSize ?? 84);
case Variants.two:
return _titleVariantTwo(color: color, fontSize: fontSize ?? 85);
case _:
return _titleVariantOne(color: color, fontSize: fontSize ?? 84);
}
}