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