Widget.material constructor Null safety

const Widget.material(
  1. {Key? key,
  2. @Default(MaterialType.canvas) MaterialType type,
  3. @Default(0.0) double elevation,
  4. Color? color,
  5. Color? shadowColor,
  6. Color? surfaceTintColor,
  7. TextStyle? textStyle,
  8. BorderRadius? borderRadius,
  9. ShapeBorder? shape,
  10. @Default(true) bool borderOnForeground,
  11. @Default(Clip.none) Clip clipBehavior,
  12. @Default(Duration(milliseconds: 200)) Duration animationDuration,
  13. Widget? child}
)

Implementation

const factory Widget.material({
  Key? key,
  @Default(MaterialType.canvas) MaterialType type,
  @Default(0.0) double elevation,
  Color? color,
  Color? shadowColor,
  Color? surfaceTintColor,
  TextStyle? textStyle,
  BorderRadius? borderRadius,
  ShapeBorder? shape,
  @Default(true) bool borderOnForeground,
  @Default(Clip.none) Clip clipBehavior,
  @Default(Duration(milliseconds: 200)) Duration animationDuration,
  Widget? child,
}) = Material;