TimelineBubble constructor

const TimelineBubble({
  1. Key? key,
  2. required DirectionConfig direction,
  3. Color bubbleColor = Colors.blue,
  4. Color bgColor = Colors.white,
  5. Color stripColor = Colors.teal,
  6. Widget? icon,
  7. String? title,
  8. double size = 120,
  9. String? subtitle,
  10. String? description,
  11. TextStyle? titleStyle,
  12. TextStyle? subtitleStyle,
  13. TextStyle? descriptionStyle,
  14. double spaceBetweenItems = 20.0,
  15. Widget? titleWidget,
  16. Widget? subtitleWidget,
  17. Widget? descriptionWidget,
})

Constructor

Implementation

const TimelineBubble({
  Key? key,
  required this.direction,
  this.bubbleColor = Colors.blue,
  this.bgColor = Colors.white,
  this.stripColor = Colors.teal,
  this.icon,
  this.title,
  this.size = 120,
  this.subtitle,
  this.description,
  this.titleStyle,
  this.subtitleStyle,
  this.descriptionStyle,
  this.spaceBetweenItems = 20.0,
  this.titleWidget,
  this.subtitleWidget,
  this.descriptionWidget,
})  : assert(direction == DirectionConfig.left ||
          direction == DirectionConfig.right),
      // assert(title != null || titleWidget != null),
      super(key: key);