TabData constructor

const TabData({
  1. required IconData iconData,
  2. required String title,
  3. Function? onClick,
  4. Color? tabColor,
  5. BorderRadius? borderRadius,
  6. Gradient? tabGradient,
  7. Key? key,
})

Constructs a TabData instance with the following parameters:

  • iconData: Icon data to be displayed in the tab.
  • title: Text to be displayed inside the tab.
  • onClick: Function to be called when the tab is clicked.
  • tabColor: Background color of the tab.
  • borderRadius: Border radius of the tab.
  • tabGradient: Background gradient of the tab.
  • key: Unique key for the tab.

Implementation

const TabData({
  required this.iconData,
  required this.title,
  this.onClick,
  this.tabColor,
  this.borderRadius,
  this.tabGradient,
  this.key,
});