call method

T call({
  1. Color? color,
  2. Gradient? gradient,
  3. List<BoxShadow>? shadows,
  4. ShapeBorder? shape,
})

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(),
  );
}