TabItem constructor

const TabItem({
  1. Key? key,
  2. String label = 'Label',
  3. bool hasLabel = true,
  4. bool hasIcon = false,
  5. IconData? icon = Icons.face_5_outlined,
  6. Widget? iconWidget,
  7. bool isSelected = false,
  8. TabItemType type = TabItemType.gray,
  9. VoidCallback? onTap,
})

Creates a TabItem instance.

Implementation

const TabItem({
  super.key,
  this.label = 'Label',
  this.hasLabel = true,
  this.hasIcon = false,
  this.icon = Icons.face_5_outlined,
  this.iconWidget,
  this.isSelected = false,
  this.type = TabItemType.gray,
  this.onTap,
});