mega method

TextStyle mega({
  1. Color? color,
  2. bool? isBold,
  3. bool? isStatic,
  4. FontWeight fontWeight = FontWeight.normal,
})

Implementation

TextStyle mega(
    {Color? color,
    bool? isBold,
    bool? isStatic,
    FontWeight fontWeight = FontWeight.normal}) {
  color ??= Get.find<AppColors>().textColor;
  return TextStyle(
      fontSize: isStatic == null
          ? _size6
          : isStatic
              ? _staticSizes["mega"]
              : _sizeRatios["mega"],
      color: color,
      fontWeight: isBold == null
          ? fontWeight
          : isBold
              ? FontWeight.bold
              : FontWeight.normal);
}