fallback static method

ZeroCardStyle fallback({
  1. Color? backgroundColor,
  2. double? elevation,
  3. BorderRadiusGeometry? borderRadius,
  4. BorderSide? side,
  5. Color? shadowColor,
  6. EdgeInsetsGeometry? margin,
  7. 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,
    );