CirclifyItem constructor

CirclifyItem({
  1. String? id,
  2. required Color color,
  3. required double value,
  4. String? label,
})

Implementation

CirclifyItem({
  String? id,
  required this.color,
  required this.value,
  this.label,
})  : id = id ?? _generateSimpleUuid,
      assert(value > 0, 'Value must be greater than 0');