Widget.stack constructor Null safety

const Widget.stack(
  1. {Key? key,
  2. @Default(Alignment.topLeft) Alignment alignment,
  3. TextDirection? textDirection,
  4. @Default(StackFit.loose) StackFit fit,
  5. @Default(Clip.hardEdge) Clip clipBehavior,
  6. @Default([]) List<Widget> children}
)

Implementation

const factory Widget.stack({
  Key? key,
  @Default(Alignment.topLeft) Alignment alignment,
  TextDirection? textDirection,
  @Default(StackFit.loose) StackFit fit,
  @Default(Clip.hardEdge) Clip clipBehavior,
  @Default([]) List<Widget> children,
}) = Stack;