Tab constructor

Tab({
  1. Key? key,
  2. Widget? icon = const SizedBox.shrink(),
  3. required Widget text,
  4. required Widget body,
  5. IconData? closeIcon = FluentIcons.chrome_close,
  6. VoidCallback? onClosed,
  7. String? semanticLabel,
  8. bool disabled = false,
})

Creates a tab.

Implementation

Tab({
  this.key,
  this.icon = const SizedBox.shrink(),
  required this.text,
  required this.body,
  this.closeIcon = FluentIcons.chrome_close,
  this.onClosed,
  this.semanticLabel,
  this.disabled = false,
});