Widget.card constructor Null safety

const Widget.card(
  1. {Key? key,
  2. Color? color,
  3. Color? shadowColor,
  4. Color? surfaceTintColor,
  5. double? elevation,
  6. ShapeBorder? shape,
  7. @Default(true) bool borderOnForeground,
  8. EdgeInsets? margin,
  9. Clip? clipBehavior,
  10. Widget? child,
  11. @Default(true) bool semanticContainer}
)

Implementation

const factory Widget.card({
  Key? key,
  Color? color,
  Color? shadowColor,
  Color? surfaceTintColor,
  double? elevation,
  ShapeBorder? shape,
  @Default(true) bool borderOnForeground,
  EdgeInsets? margin,
  Clip? clipBehavior,
  Widget? child,
  @Default(true) bool semanticContainer,
}) = Card;