material method

Widget material({
  1. Color? color,
  2. double elevation = 0,
  3. Color? shadowColor,
  4. ShapeBorder? shape,
  5. BorderRadius? borderRadius,
})

Wraps widget with Material

Implementation

Widget material({
  Color? color,
  double elevation = 0,
  Color? shadowColor,
  ShapeBorder? shape,
  BorderRadius? borderRadius,
}) => Material(
  color: color,
  elevation: elevation,
  shadowColor: shadowColor,
  shape:
      shape ??
      (borderRadius != null
          ? RoundedRectangleBorder(borderRadius: borderRadius)
          : null),
  child: this,
);