only method

  1. @override
T only({
  1. ColorDto? color,
  2. GradientDto<Gradient>? gradient,
  3. List<BoxShadowDto>? shadows,
  4. ShapeBorderDto<ShapeBorder>? shape,
})
override

Implementation

@override
T only({
  ColorDto? color,
  GradientDto? gradient,
  List<BoxShadowDto>? shadows,
  ShapeBorderDto? shape,
}) {
  return builder(
    ShapeDecorationDto(
      color: color,
      shape: shape,
      gradient: gradient,
      shadows: shadows,
    ),
  );
}