BubbleSelection constructor
BubbleSelection({})
Implementation
BubbleSelection({
Key? key,
required this.onSelect,
required this.onRemoved,
required this.size,
required this.bubbles,
required this.selectedBubbles,
this.backgroundColor = const Color(0xFFFFFFFF),
this.borderColor = const Color(0x00000000),
}) : assert(
bubbles.isNotEmpty && checkForDuplicates(bubbles),
"There should be atleast one item and every item should have unique value :"
'\n'
'Either zero or 2 or more same values were detected',
),
assert(
checkForDuplicates(selectedBubbles),
"There should be atleast one item and every item should have unique value :"
'\n'
'Either zero or 2 or more same values were detected',
),
assert(size.isFinite, "Size should be finite"),
super(key: key);