TTab<T> constructor

const TTab<T>({
  1. required T value,
  2. String? text,
  3. IconData? icon,
  4. bool isEnabled = true,
  5. bool isActive = false,
})

Creates a tab item.

Implementation

const TTab({
  required this.value,
  this.text,
  this.icon,
  this.isEnabled = true,
  this.isActive = false,
}) : assert(icon != null || text != null, 'Either icon or text must be provided');