FontBasics.fromDefault constructor

FontBasics.fromDefault({
  1. String? fontFamily,
  2. FontWeight? fontWeightRegular,
  3. FontWeight? fontWeightMedium,
  4. FontWeight? fontWeightSemibold,
  5. 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);
}