Widget.expanded constructor Null safety

const Widget.expanded(
  1. {Key? key,
  2. @Default(1) int flex,
  3. required Widget child}
)

Implementation

const factory Widget.expanded({
  Key? key,
  @Default(1) int flex,
  required Widget child,
}) = Expanded;