specific method
TextStyle
specific({
- required String specificType,
- Color? color,
- String? fontFamily,
- TextDecoration? decoration,
- Color? backgroundColor,
- bool? isBold,
- FontWeight fontWeight = FontWeight.normal,
Implementation
TextStyle specific(
{required String specificType,
Color? color,
String? fontFamily,
TextDecoration? decoration,
Color? backgroundColor,
bool? isBold,
FontWeight fontWeight = FontWeight.normal}) {
color ??= Get.find<AppColors>().textColor;
return GoogleFonts.getFont(fontFamily ?? defaultFontFamily,
fontSize: _specificSizes[specificType],
color: color,
decoration: decoration,
backgroundColor: backgroundColor,
fontWeight: isBold == null
? fontWeight
: isBold
? FontWeight.bold
: FontWeight.normal);
}