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