FTabs constructor

FTabs({
  1. required List<FTabEntry> children,
  2. FTabControl control = const .managed(),
  3. bool scrollable = false,
  4. ScrollPhysics? physics,
  5. FTabsStyleDelta style = const .context(),
  6. ValueChanged<int>? onPress,
  7. MouseCursor mouseCursor = .defer,
  8. bool expands = false,
  9. 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 = const .context(),
  this.onPress,
  this.mouseCursor = .defer,
  this.expands = false,
  super.key,
}) : assert(children.isNotEmpty, 'Must provide at least 1 tab.');