FTabs constructor

FTabs({
  1. required List<FTabEntry> children,
  2. FTabControl control = const .managed(),
  3. bool scrollable = false,
  4. ScrollPhysics? physics,
  5. FTabsStyle style(
    1. FTabsStyle style
    )?,
  6. ValueChanged<int>? onPress,
  7. MouseCursor mouseCursor = .defer,
  8. Key? key,
})

Creates a FTabs.

Contract

Throws AssertionError if:

  • children is empty.

Implementation

FTabs({
  required this.children,
  this.control = const .managed(),
  this.scrollable = false,
  this.physics,
  this.style,
  this.onPress,
  this.mouseCursor = .defer,
  super.key,
}) : assert(children.isNotEmpty, 'Must provide at least 1 tab.');