only method
T
only({
- ColorDto? color,
- BoxBorderDto? border,
- BorderRadiusGeometryDto? borderRadius,
- GradientDto<
Gradient> ? gradient, - List<
BoxShadowDto> ? boxShadow, - BoxShape? shape,
- BlendMode? backgroundBlendMode,
- 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,
),
);
}