BorderSide
Creates the side of a border.
By default, the border is 1.0 logical pixels wide and solid black color.
To omit (not show) a side, set style to BorderStyle.NONE.
It skips painting the border, but the border still has a width.
Properties
color- The color of this side of the border.stroke_align- The relative position of the stroke on aBorderSidein anOutlinedBorderorBorder.stroke_inset- The amount of the stroke width that lies inside thisBorderSide.stroke_offset- The offset of the stroke, taking into account the stroke alignment.stroke_outset- The amount of the stroke width that lies outside thisBorderSide.style- The style of this side of the border.width- The width of this side of the border, in logical pixels.
Methods
Properties
colorclass-attributeinstance-attribute
color: ColorValue = Colors.BLACKThe color of this side of the border.
stroke_alignclass-attributeinstance-attribute
stroke_align: BorderSideStrokeAlignValue = BorderSideStrokeAlign.INSIDEThe relative position of the stroke on a BorderSide in an OutlinedBorder or Border.
stroke_insetproperty
The amount of the stroke width that lies inside this BorderSide.
For example, this will return the width for a stroke_align
of -1, half the width for a stroke_align of 0, and 0
for a stroke_align of 1.
stroke_offsetproperty
The offset of the stroke, taking into account the stroke alignment.
For example, this will return the negative width of the stroke
for a stroke_align of -1, 0 for a stroke_align of 0, and the
width for a stroke_align of -1.
stroke_outsetproperty
The amount of the stroke width that lies outside this BorderSide.
For example, this will return 0 for a stroke_align of -1, half the
width for a stroke_align of 0, and the width
for a stroke_align of 1.
styleclass-attributeinstance-attribute
style: BorderStyle = BorderStyle.SOLIDThe style of this side of the border.