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