CSSBoxDecoration class
Methods
clone ({Color ? color , DecorationImage ? image , BoxBorder ? border , BorderRadius ? borderRadius , List <KrakenBoxShadow > ? boxShadow , Gradient ? gradient , BlendMode ? backgroundBlendMode , BoxShape ? shape })
→ CSSBoxDecoration
copyWith ({Color ? color , DecorationImage ? image , BoxBorder ? border , BorderRadiusGeometry ? borderRadius , List <BoxShadow > ? boxShadow , Gradient ? gradient , BlendMode ? backgroundBlendMode , BoxShape ? shape })
→ BoxDecoration
Creates a copy of this object but with the given fields replaced with the
new values.
inherited
createBoxPainter ([VoidCallback ? onChanged ])
→ BoxPainter
Returns a BoxPainter that will paint this decoration.
inherited
debugAssertIsValid ()
→ bool
In debug mode, throws an exception if the object is not in a
valid configuration. Otherwise, returns true.
inherited
debugFillProperties (DiagnosticPropertiesBuilder properties )
→ void
Add additional properties associated with the node.
inherited
getClipPath (Rect rect , TextDirection textDirection )
→ Path
Returns a closed Path that describes the outer edge of this decoration.
inherited
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.
inherited
lerpFrom (Decoration ? a , double t )
→ BoxDecoration ?
Linearly interpolates from another Decoration (which may be of a
different class) to this
.
inherited
lerpTo (Decoration ? b , double t )
→ BoxDecoration ?
Linearly interpolates from this
to another Decoration (which may be of
a different class).
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scale (double factor )
→ BoxDecoration
Returns a new box decoration that is scaled by the given factor.
inherited
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