Widget.tab constructor Null safety

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

Implementation

const factory Widget.tab({
  Key? key,
  String? text,
  Widget? icon,
  @Default(EdgeInsets.only(bottom: 10.0)) EdgeInsets iconMargin,
  double? height,
  Widget? child,
}) = Tab;