fallback static method
ZeroCardStyle
fallback({
- Color? backgroundColor,
- double? elevation,
- BorderRadiusGeometry? borderRadius,
- BorderSide? side,
- Color? shadowColor,
- EdgeInsetsGeometry? margin,
- bool? borderOnForeground,
create a ZeroCardStyle with default values
Implementation
static ZeroCardStyle fallback({
Color? backgroundColor,
double? elevation,
BorderRadiusGeometry? borderRadius,
BorderSide? side,
Color? shadowColor,
EdgeInsetsGeometry? margin,
bool? borderOnForeground,
}) =>
ZeroCardStyle(
backgroundColor: backgroundColor ?? Colors.white,
elevation: elevation ?? 4,
borderRadius:
borderRadius ?? const BorderRadius.all(Radius.circular(8)),
side: side ?? BorderSide.none,
shadowColor: shadowColor ?? Colors.black,
margin: margin ?? const EdgeInsets.all(0),
borderOnForeground: borderOnForeground ?? true,
);