RCKUnreadBadgeConfig constructor

RCKUnreadBadgeConfig({
  1. Color? backgroundColor,
  2. Color? muteBackgroundColor,
  3. Color textColor = convoItemTextColor,
  4. double fontSize = convoUnreadFontSize,
  5. BadgePosition position = BadgePosition.itemRight,
  6. double width = 42.0,
  7. double height = 21.0,
  8. String overflowText = '99+',
})

Implementation

RCKUnreadBadgeConfig({
  Color? backgroundColor,
  Color? muteBackgroundColor,
  this.textColor = convoItemTextColor,
  this.fontSize = convoUnreadFontSize,
  this.position = BadgePosition.itemRight,
  this.width = 42.0,
  this.height = 21.0,
  this.overflowText = '99+',
})  : backgroundColor = backgroundColor ??
          RCKThemeProvider().themeColor.notice ??
          const Color(0xFFFF0000),
      muteBackgroundColor = muteBackgroundColor ??
          RCKThemeProvider().themeColor.textAuxiliary ??
          const Color(0xFFE3F2FD);