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