GlassTab constructor

const GlassTab({
  1. Widget? icon,
  2. Widget? activeIcon,
  3. String? label,
  4. String? semanticLabel,
  5. Color? glowColor,
  6. double? thickness,
})

Creates a tab configuration.

At least one of icon or label must be provided.

Implementation

const GlassTab({
  this.icon,
  this.activeIcon,
  this.label,
  this.semanticLabel,
  this.glowColor,
  this.thickness,
}) : assert(
        icon != null || label != null,
        'GlassTab must have either an icon or label',
      );