Decoration.box constructor Null safety
- {Color? color,
- DecorationImage? image,
- ShapeBorder? border,
- BorderRadius? borderRadius,
- List<
BoxShadow> ? boxShadow, - Gradient? gradient,
- BlendMode? backgroundBlendMode,
- @Default(BoxShape.rectangle) BoxShape shape}
Implementation
const factory Decoration.box({
Color? color,
DecorationImage? image,
ShapeBorder? border,
BorderRadius? borderRadius,
List<BoxShadow>? boxShadow,
Gradient? gradient,
BlendMode? backgroundBlendMode,
@Default(BoxShape.rectangle) BoxShape shape,
}) = BoxDecoration;