TabItem<T> constructor

const TabItem<T>({
  1. String? fontFamily,
  2. String? title = '',
  3. required T icon,
  4. T? activeIcon,
  5. bool? isIconBlend,
})

Create item

Implementation

const TabItem({
  this.fontFamily,
  this.title = '',
  required this.icon,
  this.activeIcon,
  bool? isIconBlend,
})  : assert(icon is IconData || icon is Widget,
          'TabItem only support IconData and Widget'),
      blend = isIconBlend ?? (icon is IconData);