CNToolbarSegment constructor

const CNToolbarSegment({
  1. required String label,
  2. CNSymbol? icon,
  3. IconData? customIcon,
  4. CNImageAsset? imageAsset,
  5. String? tooltip,
  6. bool enabled = true,
})

Creates a segment.

Implementation

const CNToolbarSegment({
  required this.label,
  this.icon,
  this.customIcon,
  this.imageAsset,
  this.tooltip,
  this.enabled = true,
});