DashedDecoration class
Constructors
DashedDecoration ({Color ? color , DecorationImage ? image , BoxBorder ? border , BorderRadiusGeometry ? borderRadius , List <BoxShadow > ? boxShadow , Gradient ? gradient , BlendMode ? backgroundBlendMode , BoxShape shape = BoxShape.rectangle , double ? strokeWidth = 1.0 , double ? gap = 5.0 , Color ? dashedColor , bool ? drawDashed = true })
Creates a box decoration.
const
Methods
copyWith ({Color ? color , DecorationImage ? image , BoxBorder ? border , BorderRadiusGeometry ? borderRadius , List <BoxShadow > ? boxShadow , Gradient ? gradient , BlendMode ? backgroundBlendMode , BoxShape ? shape , double ? strokeWidth = 1.0 , double ? gap = 5.0 , Color ? dashedColor , bool ? dawDashed })
→ DashedDecoration
Creates a copy of this object but with the given fields replaced with the
new 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 new 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
flutter_common_widgets 2.10.0