toMaterial method
Widget
toMaterial(- {Key key,
- MaterialType type = MaterialType.canvas,
- double elevation = 0.0,
- Color color,
- Color shadowColor = const Color(0xFF000000),
- TextStyle textStyle,
- BorderRadiusGeometry borderRadius,
- ShapeBorder shape,
- bool borderOnForeground = true,
- Clip clipBehavior = Clip.none,
- Duration animationDuration = kThemeChangeDuration}
)
Implementation
Widget toMaterial({
Key key,
MaterialType type = MaterialType.canvas,
double elevation = 0.0,
Color color,
Color shadowColor = const Color(0xFF000000),
TextStyle textStyle,
BorderRadiusGeometry borderRadius,
ShapeBorder shape,
bool borderOnForeground = true,
Clip clipBehavior = Clip.none,
Duration animationDuration = kThemeChangeDuration,
}) {
return Material(
type: type,
animationDuration: animationDuration,
borderOnForeground: borderOnForeground,
borderRadius: borderRadius,
clipBehavior: clipBehavior,
color: color,
elevation: elevation,
key: key,
shadowColor: shadowColor,
shape: shape,
textStyle: textStyle,
child: this,
);
}