NoticeBar constructor

NoticeBar({
  1. Key? key,
  2. required String text,
  3. Color color = Style.noticeBarTextColor,
  4. Color background = Style.noticeBarBackgroundColor,
  5. IconData? leftIcon,
  6. String? mode,
  7. bool scrollable = true,
  8. bool wrapable = false,
  9. int speed = 5,
  10. int delay = 100,
  11. dynamic onClose()?,
  12. dynamic onClick()?,
})

Implementation

NoticeBar(
    {Key? key,
    required this.text,
    this.color: Style.noticeBarTextColor,
    this.background: Style.noticeBarBackgroundColor,
    this.leftIcon,
    this.mode,
    this.scrollable: true,
    this.wrapable: false,
    this.speed: 5,
    this.delay: 100,
    this.onClose,
    this.onClick});