FontBasics.fromDefault constructor
FontBasics.fromDefault({
- String? fontFamily,
- FontWeight? fontWeightRegular,
- FontWeight? fontWeightMedium,
- FontWeight? fontWeightSemibold,
- FontWeight? fontWeightBold,
Implementation
factory FontBasics.fromDefault(
{String? fontFamily,
FontWeight? fontWeightRegular,
FontWeight? fontWeightMedium,
FontWeight? fontWeightSemibold,
FontWeight? fontWeightBold}) {
return FontBasics(
fontFamily,
fontWeightRegular ?? FontWeight.w400,
fontWeightMedium ?? FontWeight.w500,
fontWeightSemibold ?? FontWeight.w600,
fontWeightBold ?? FontWeight.w700);
}