TTab<T> constructor

const TTab<T>({
  1. required T value,
  2. String? text,
  3. dynamic icon,
  4. bool isEnabled = true,
  5. bool isActive = false,
  6. int? count,
  7. Widget content(
    1. BuildContext context
    )?,
  8. Map<String, dynamic>? data,
  9. Object? permission,
  10. TAuthMode? onDenied,
})

Creates a tab item.

Implementation

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