call method
Implementation
T call({
Color? color,
Gradient? gradient,
List<BoxShadow>? shadows,
ShapeBorder? shape,
}) {
return only(
color: color?.toDto(),
gradient: gradient?.toDto(),
shadows: shadows?.map((e) => e.toDto()).toList(),
shape: shape?.toDto(),
);
}