const
Widget.material(- {Key? key,
- @Default(MaterialType.canvas) MaterialType type,
- @Default(0.0) double elevation,
- Color? color,
- Color? shadowColor,
- Color? surfaceTintColor,
- TextStyle? textStyle,
- BorderRadius? borderRadius,
- ShapeBorder? shape,
- @Default(true) bool borderOnForeground,
- @Default(Clip.none) Clip clipBehavior,
- @Default(Duration(milliseconds: 200)) Duration animationDuration,
- Widget? child}
)
Implementation
const factory Widget.material({
Key? key,
@Default(MaterialType.canvas) MaterialType type,
@Default(0.0) double elevation,
Color? color,
Color? shadowColor,
Color? surfaceTintColor,
TextStyle? textStyle,
BorderRadius? borderRadius,
ShapeBorder? shape,
@Default(true) bool borderOnForeground,
@Default(Clip.none) Clip clipBehavior,
@Default(Duration(milliseconds: 200)) Duration animationDuration,
Widget? child,
}) = Material;