ExtendedTab constructor

const ExtendedTab({
  1. Key? key,
  2. String? text,
  3. Widget? icon,
  4. EdgeInsetsGeometry iconMargin = const EdgeInsets.only(bottom: 10.0),
  5. Widget? child,
  6. Axis? scrollDirection,
  7. double? size,
  8. double? height,
})

Creates a material design TabBar tab.

At least one of text, icon, and child must be non-null. The text and child arguments must not be used at the same time. The iconMargin is only useful when icon and either one of text or child is non-null.

Implementation

const ExtendedTab({
  Key? key,
  this.text,
  this.icon,
  this.iconMargin = const EdgeInsets.only(bottom: 10.0),
  this.child,
  this.scrollDirection,
  this.size,
  this.height,
})  : assert(text != null || child != null || icon != null),
      assert(text == null || child == null),
      super(key: key);