card method
Widget
card({
- Key? key,
- Color? color,
- Color? shadowColor,
- Color? surfaceTintColor,
- double? elevation,
- ShapeBorder? shape,
- bool borderOnForeground = true,
- EdgeInsetsGeometry? margin,
- Clip? clipBehavior,
- bool semanticContainer = true,
Wraps this widget in a Card.
Implementation
Widget card({
Key? key,
Color? color,
Color? shadowColor,
Color? surfaceTintColor,
double? elevation,
ShapeBorder? shape,
bool borderOnForeground = true,
EdgeInsetsGeometry? margin,
Clip? clipBehavior,
bool semanticContainer = true,
}) {
return Card(
key: key,
color: color,
shadowColor: shadowColor,
surfaceTintColor: surfaceTintColor,
elevation: elevation,
shape: shape,
borderOnForeground: borderOnForeground,
margin: margin,
clipBehavior: clipBehavior,
semanticContainer: semanticContainer,
child: this,
);
}