Tab constructor

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

Implementation

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