only method

  1. @override
T only({
  1. ColorDto? color,
  2. BoxBorderDto? border,
  3. BorderRadiusGeometryDto? borderRadius,
  4. GradientDto<Gradient>? gradient,
  5. List<BoxShadowDto>? boxShadow,
  6. BoxShape? shape,
  7. BlendMode? backgroundBlendMode,
  8. DecorationImageDto? image,
})
override

Implementation

@override
T only({
  ColorDto? color,
  BoxBorderDto? border,
  BorderRadiusGeometryDto? borderRadius,
  GradientDto? gradient,
  List<BoxShadowDto>? boxShadow,
  BoxShape? shape,
  BlendMode? backgroundBlendMode,
  DecorationImageDto? image,
}) {
  return builder(
    BoxDecorationDto(
      color: color,
      border: border,
      borderRadius: borderRadius,
      gradient: gradient,
      boxShadow: boxShadow,
      shape: shape,
      backgroundBlendMode: backgroundBlendMode,
      image: image,
    ),
  );
}