TabButton constructor

TabButton({
  1. required IconProvider icon,
  2. Color? color,
  3. Color? hoverColor,
  4. Color? disabledColor,
  5. BoxDecoration? background,
  6. BoxDecoration? hoverBackground,
  7. BoxDecoration? disabledBackground,
  8. VoidCallback? onPressed,
  9. TabbedViewMenuBuilder? menuBuilder,
  10. String? toolTip,
  11. EdgeInsetsGeometry? padding,
  12. double? iconSize,
})

Implementation

TabButton(
    {required this.icon,
    this.color,
    this.hoverColor,
    this.disabledColor,
    this.background,
    this.hoverBackground,
    this.disabledBackground,
    this.onPressed,
    this.menuBuilder,
    this.toolTip,
    this.padding,
    double? iconSize})
    : this.iconSize = iconSize == null
          ? iconSize
          : TabbedViewThemeConstants.normalize(iconSize);