NBFontWeights constructor

NBFontWeights({
  1. FontWeight? hairline,
  2. FontWeight? thin,
  3. FontWeight? light,
  4. FontWeight? normal,
  5. FontWeight? medium,
  6. FontWeight? semiBold,
  7. FontWeight? bold,
  8. FontWeight? extraBold,
  9. FontWeight? black,
  10. FontWeight? extraBlack,
})

Implementation

factory NBFontWeights({
  FontWeight? hairline,
  FontWeight? thin,
  FontWeight? light,
  FontWeight? normal,
  FontWeight? medium,
  FontWeight? semiBold,
  FontWeight? bold,
  FontWeight? extraBold,
  FontWeight? black,
  FontWeight? extraBlack,
}) {
  return NBFontWeights._raw(
    hairline: hairline ?? baseNBFontWeights.hairline!,
    thin: thin ?? baseNBFontWeights.thin!,
    light: light ?? baseNBFontWeights.light!,
    normal: normal ?? baseNBFontWeights.normal!,
    medium: medium ?? baseNBFontWeights.medium!,
    semibold: semiBold ?? baseNBFontWeights.semibold!,
    bold: bold ?? baseNBFontWeights.bold!,
    extrabold: extraBold ?? baseNBFontWeights.extrabold!,
    black: black ?? baseNBFontWeights.black!,
    extraBlack: extraBlack ?? baseNBFontWeights.extraBlack!,
  );
}