BoxDecorationMix constructor

BoxDecorationMix({
  1. BoxBorderMix<BoxBorder>? border,
  2. BorderRadiusGeometryMix<BorderRadiusGeometry>? borderRadius,
  3. BoxShape? shape,
  4. BlendMode? backgroundBlendMode,
  5. Color? color,
  6. DecorationImageMix? image,
  7. GradientMix<Gradient>? gradient,
  8. List<BoxShadowMix>? boxShadow,
})

Implementation

BoxDecorationMix({
  BoxBorderMix? border,
  BorderRadiusGeometryMix? borderRadius,
  BoxShape? shape,
  BlendMode? backgroundBlendMode,
  Color? color,
  DecorationImageMix? image,
  GradientMix? gradient,
  List<BoxShadowMix>? boxShadow,
}) : this.create(
       border: Prop.maybeMix(border),
       borderRadius: Prop.maybeMix(borderRadius),
       shape: Prop.maybe(shape),
       backgroundBlendMode: Prop.maybe(backgroundBlendMode),
       color: Prop.maybe(color),
       image: Prop.maybeMix(image),
       gradient: Prop.maybeMix(gradient),
       boxShadow: boxShadow != null
           ? Prop.mix(BoxShadowListMix(boxShadow))
           : null,
     );