material method
Widget
material({
- Color? color,
- double elevation = 0,
- Color? shadowColor,
- ShapeBorder? shape,
- BorderRadius? borderRadius,
Wraps widget with Material
Implementation
Widget material({
Color? color,
double elevation = 0,
Color? shadowColor,
ShapeBorder? shape,
BorderRadius? borderRadius,
}) {
return Material(
color: color,
elevation: elevation,
shadowColor: shadowColor,
shape:
shape ??
(borderRadius != null
? RoundedRectangleBorder(borderRadius: borderRadius)
: null),
child: this,
);
}