material method
Material
material({
- MaterialType type = MaterialType.canvas,
- double elevation = 0.0,
- Color? color,
- Color? shadowColor,
- Color? surfaceTintColor,
- TextStyle? textStyle,
- BorderRadiusGeometry? borderRadius,
- ShapeBorder? shape,
- bool borderOnForeground = true,
- Clip clipBehavior = Clip.none,
Implementation
Material material({
MaterialType type = MaterialType.canvas,
double elevation = 0.0,
Color? color,
Color? shadowColor,
Color? surfaceTintColor,
TextStyle? textStyle,
BorderRadiusGeometry? borderRadius,
ShapeBorder? shape,
bool borderOnForeground = true,
Clip clipBehavior = Clip.none,
}) {
// , , , ,
return Material(
child: this,
type: type,
elevation: elevation,
color: color,
shadowColor: shadowColor,
surfaceTintColor: surfaceTintColor,
textStyle: textStyle,
borderRadius: borderRadius,
shape: shape,
borderOnForeground: borderOnForeground,
clipBehavior: clipBehavior);
}