ChatUIKitFont constructor

ChatUIKitFont({
  1. TextStyle? headlineLarge,
  2. TextStyle? headlineMedium,
  3. TextStyle? headlineSmall,
  4. TextStyle? titleLarge,
  5. TextStyle? titleMedium,
  6. TextStyle? titleSmall,
  7. TextStyle? labelLarge,
  8. TextStyle? labelMedium,
  9. TextStyle? labelSmall,
  10. TextStyle? labelExtraSmall,
  11. TextStyle? bodyLarge,
  12. TextStyle? bodyMedium,
  13. TextStyle? bodySmall,
  14. TextStyle? bodyExtraSmall,
  15. ChatUIKitFontSize fontSize = ChatUIKitFontSize.normal,
})

Implementation

ChatUIKitFont({
  TextStyle? headlineLarge,
  TextStyle? headlineMedium,
  TextStyle? headlineSmall,
  TextStyle? titleLarge,
  TextStyle? titleMedium,
  TextStyle? titleSmall,
  TextStyle? labelLarge,
  TextStyle? labelMedium,
  TextStyle? labelSmall,
  TextStyle? labelExtraSmall,
  TextStyle? bodyLarge,
  TextStyle? bodyMedium,
  TextStyle? bodySmall,
  TextStyle? bodyExtraSmall,
  this.fontSize = ChatUIKitFontSize.normal,
})  : headlineLarge = headlineLarge ??
          const TextStyle(fontSize: 20, fontWeight: FontWeight.w600),
      headlineMedium = headlineMedium ??
          const TextStyle(fontSize: 18, fontWeight: FontWeight.w600),
      headlineSmall = headlineSmall ??
          const TextStyle(fontSize: 16, fontWeight: FontWeight.w600),
      titleLarge = titleLarge ??
          const TextStyle(fontSize: 18, fontWeight: FontWeight.w500),
      titleMedium = titleMedium ??
          const TextStyle(fontSize: 16, fontWeight: FontWeight.w500),
      titleSmall = titleSmall ??
          const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
      labelLarge = labelLarge ??
          const TextStyle(fontSize: 16, fontWeight: FontWeight.w500),
      labelMedium = labelMedium ??
          const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),
      labelSmall = labelSmall ??
          const TextStyle(fontSize: 12, fontWeight: FontWeight.w500),
      labelExtraSmall = labelExtraSmall ??
          const TextStyle(fontSize: 11, fontWeight: FontWeight.w400),
      bodyLarge = bodyLarge ??
          const TextStyle(fontSize: 16, fontWeight: FontWeight.w400),
      bodyMedium = bodyMedium ??
          const TextStyle(fontSize: 14, fontWeight: FontWeight.w400),
      bodySmall = bodySmall ??
          const TextStyle(fontSize: 12, fontWeight: FontWeight.w400),
      bodyExtraSmall = bodyExtraSmall ??
          const TextStyle(fontSize: 11, fontWeight: FontWeight.w400);