LeftBorder class

A layout widget that draws a vertical line (left border) on the left side of its child.

Inheritance

Constructors

LeftBorder({required Widget child, Style style = const Style(), String char = '│', EdgeInsets padding = const EdgeInsets.only(left: 1), int? borderHeight})
Creates a left border widget.
const

Properties

borderHeight int?
Optional fixed height for the border line. If null, it takes full available height.
final
char String
The character used to draw the vertical border line.
final
child Widget
The child widget to be wrapped with a border.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
The optional key for this widget.
finalinherited
padding EdgeInsets
The padding space around the child.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style Style
The style applied to the border character.
final

Methods

createElement() Element
Creates an Element to manage this widget's location in the tree.
override
getIntrinsicHeight(int width) int
Computes the intrinsic height of this widget under the given width constraint.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(Buffer buffer, Rect area) → void
Renders the widget onto the provided buffer within the specified area.
override
toString() String
A string representation of this object.
inherited

Operators

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