call method

T call({
  1. Color? color,
  2. BoxBorder? border,
  3. BorderRadiusGeometry? borderRadius,
  4. Gradient? gradient,
  5. List<BoxShadow>? boxShadow,
  6. BoxShape? shape,
  7. BlendMode? backgroundBlendMode,
})

Implementation

T call({
  Color? color,
  BoxBorder? border,
  BorderRadiusGeometry? borderRadius,
  Gradient? gradient,
  List<BoxShadow>? boxShadow,
  BoxShape? shape,
  BlendMode? backgroundBlendMode,
}) {
  return only(
    color: color?.toDto(),
    border: border?.toDto(),
    borderRadius: borderRadius?.toDto(),
    gradient: gradient?.toDto(),
    boxShadow: boxShadow?.map((e) => e.toDto()).toList(),
    shape: shape,
    backgroundBlendMode: backgroundBlendMode,
  );
}