material method
Widget
material({
- Key? key,
- bool enabled = true,
- MaterialType type = MaterialType.transparency,
- double elevation = 0.0,
- Color? color,
- Color? shadowColor,
- TextStyle? textStyle,
- BorderRadiusGeometry? borderRadius,
- ShapeBorder? shape,
- bool borderOnForeground = true,
- Clip clipBehavior = Clip.none,
- Duration animationDuration = kThemeChangeDuration,
Implementation
Widget material({
Key? key,
bool enabled = true,
MaterialType type = MaterialType.transparency,
double elevation = 0.0,
Color? color,
Color? shadowColor,
TextStyle? textStyle,
BorderRadiusGeometry? borderRadius,
ShapeBorder? shape,
bool borderOnForeground = true,
Clip clipBehavior = Clip.none,
Duration animationDuration = kThemeChangeDuration,
}) =>
enabled
? Material(
key: key,
type: type,
elevation: elevation,
color: color,
shadowColor: shadowColor,
textStyle: textStyle,
borderRadius: borderRadius,
shape: shape,
borderOnForeground: borderOnForeground,
clipBehavior: clipBehavior,
animationDuration: animationDuration,
child: this,
)
: this;