Widget.defaultTabController constructor Null safety

const Widget.defaultTabController(
  1. {Key? key,
  2. required int length,
  3. @Default(0) int initialIndex,
  4. required Widget child,
  5. Duration? animationDuration}
)

Implementation

const factory Widget.defaultTabController({
  Key? key,
  required int length,
  @Default(0) int initialIndex,
  required Widget child,
  Duration? animationDuration,
}) = DefaultTabController;