specific method

TextStyle specific({
  1. required String specificType,
  2. Color? color,
  3. bool? isBold,
  4. 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);
}