DashedDecoration class

Inheritance

Constructors

DashedDecoration({Color? color, DecorationImage? image, BoxBorder? border, BorderRadiusGeometry? borderRadius, List<BoxShadow>? boxShadow, Gradient? gradient, BlendMode? backgroundBlendMode, BoxShape? shape = BoxShape.rectangle, double strokeHeight = 1.0, double gap = 2.0, Color? dashedColor, bool? dawDashed = true})
Creates a box decoration.
const

Properties

backgroundBlendMode → BlendMode?
The blend mode applied to the color or gradient background of the box.
final
border → BoxBorder?
A border to draw above the background color, gradient, or image.
final
borderRadius → BorderRadiusGeometry?
If non-null, the corners of this box are rounded by this BorderRadius.
final
boxShadow → List<BoxShadow>?
A list of shadows cast by this box behind the box.
final
color → Color?
The color to fill in the background of the box.
final
dashedColor → Color?
final
dawDashed → bool?
final
gap → double
final
gradient → Gradient?
A gradient to use when filling the box.
final
hashCode → int
The hash code for this object.
no setteroverride
image → DecorationImage?
An image to paint above the background color or gradient.
final
isComplex → bool
Whether this decoration is complex enough to benefit from caching its painting.
no setteroverride
padding → EdgeInsetsGeometry
Returns the insets to apply when using this decoration on a box that has contents, so that the contents do not overlap the edges of the decoration. For example, if the decoration draws a frame around its edge, the padding would return the distance by which to inset the children so as to not overlap the frame.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shape → BoxShape?
The shape to fill the background color, gradient, and image into and to cast as the boxShadow.
final
strokeHeight → double
final

Methods

copyWith({Color? color, DecorationImage? image, BoxBorder? border, BorderRadiusGeometry? borderRadius, List<BoxShadow>? boxShadow, Gradient? gradient, BlendMode? backgroundBlendMode, BoxShape? shape}) → DashedDecoration
Creates a copy of this object but with the given fields replaced with the values.
createBoxPainter([VoidCallback? onChanged]) → BoxDecorationPainter
Returns a BoxPainter that will paint this decoration.
override
debugAssertIsValid() → bool
In debug mode, throws an exception if the object is not in a valid configuration. Otherwise, returns true.
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
getClipPath(Rect rect, TextDirection textDirection) → Path
Returns a closed Path that describes the outer edge of this decoration.
override
hitTest(Size size, Offset position, {TextDirection? textDirection}) → bool
Tests whether the given point, on a rectangle of a given size, would be considered to hit the decoration or not. For example, if the decoration only draws a circle, this function might return true if the point was inside the circle and false otherwise.
override
lerpFrom(Decoration? a, double t) → DashedDecoration?
Linearly interpolates from another Decoration (which may be of a different class) to this.
override
lerpTo(Decoration? b, double t) → DashedDecoration?
Linearly interpolates from this to another Decoration (which may be of a different class).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scale(double factor) → DashedDecoration
Returns a box decoration that is scaled by the given factor.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringShort() → String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

lerp(DashedDecoration? a, DashedDecoration? b, double t) → DashedDecoration?
Linearly interpolate between two box decorations.
override