Material constructor Null safety

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

Implementation

const factory Material(
    {final Key? key,
    final MaterialType type,
    final double elevation,
    final Color? color,
    final Color? shadowColor,
    final Color? surfaceTintColor,
    final TextStyle? textStyle,
    final BorderRadius? borderRadius,
    final ShapeBorder? shape,
    final bool borderOnForeground,
    final Clip clipBehavior,
    final Duration animationDuration,
    final Widget? child}) = _$Material;