WxBorderSide class

A description of a side of a border for a box-shaped widget in Flutter.

This class defines the configuration for a border side, including its style (solid, dashed, etc.), color, width, and offset. It's used by various border classes that extend WxOutlinedBorder to specify the appearance of the border.

Mixed-in types
Implementers
Annotations

Constructors

WxBorderSide({WxBorderStyle? style, Color? color, Gradient? gradient, double? width, double? offset})
Creates a new WxBorderSide object.
const
WxBorderSide.fromLegacy(BorderSide side)
Creates a WxBorderSide object from a legacy BorderSide.

Properties

color Color?
The color of this side of the border.
final
effectiveColor Color
Returns the effective color of the border, using black by default.
no setter
effectiveOffset double
Returns the effective offset of the border, using WxBorderStyle.alignInside value by default.
no setter
effectiveStyle WxBorderStyle
Returns the effective style of the border, using WxBorderStyle.solid by default.
no setter
effectiveWidth double
Returns the effective width of the border, using 1 by default.
no setter
gradient Gradient?
A gradient to use for painting the border.
final
hashCode int
The hash code for this object.
no setteroverride
offset double?
The relative position of the stroke on a WxBorderSide in an OutlinedBorder or Border.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeInset double
Get the amount of the stroke width that lies inside of the WxBorderSide.
no setter
strokeOffset double
The offset of the stroke, taking into account the stroke alignment.
no setter
strokeOutset double
Get the amount of the stroke width that lies outside of the WxBorderSide.
no setter
style WxBorderStyle?
The style of the border (e.g., solid, dashed).
final
width double?
The width of this side of the border, in logical pixels.
final

Methods

copyWith({WxBorderStyle? style, Color? color, Gradient? gradient, double? width, double? offset}) WxBorderSide
Creates a copy of this border but with the given fields replaced with the new values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
merge(WxBorderSide? other) WxBorderSide
Creates a WxBorderSide that represents the addition of the two given WxBorderSides.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scale(double t) WxBorderSide
Creates a copy of this border side description but with the width scaled by the factor t.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toLegacy() BorderSide
Converts a WxBorderSide object to a legacy BorderSide object, which is used by the standard Flutter.
toPaint(Rect rect) Paint
Create a Paint object that, if used to stroke a line, will draw the line in this border's style.
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.
override

Operators

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

Static Methods

lerp(WxBorderSide? a, WxBorderSide? b, double t) WxBorderSide?
Linearly interpolate between two border sides.

Constants

alignCenter → const double
The border is drawn on the center of the border path, with half of the WxBorderSide.width on the inside, and the other half on the outside of the path.
alignInside → const double
The border is drawn fully inside of the border path.
alignOutside → const double
The border is drawn on the outside of the border path.
none → const WxBorderSide
A constant representing a hairline black border that is not rendered.