FTabs constructor

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