Widget.flexible constructor Null safety

const Widget.flexible(
  1. {Key? key,
  2. @Default(1) int flex,
  3. @Default(FlexFit.loose) FlexFit fit,
  4. required Widget child}
)

Implementation

const factory Widget.flexible({
  Key? key,
  @Default(1) int flex,
  @Default(FlexFit.loose) FlexFit fit,
  required Widget child,
}) = Flexible;