Border class

Describes a border made of box-drawing characters for each side.

Empty strings mean no border on that side. Use Border.all for a full box border, or Border.symmetric for horizontal/vertical patterns.

Constructors

Border({String top = '', String right = '', String bottom = '', String left = ''})
Creates a Border with individual characters for each side.
const
Border.only({String? top, String? right, String? bottom, String? left})
Creates a border with only the specified sides.
factory
Border.symmetric({required String horizontal, required String vertical})
Creates a border with symmetric horizontal and vertical characters.
factory

Properties

bottom String
The character used for the bottom border.
final
hashCode int
The hash code for this object.
no setterinherited
left String
The character used for the left border.
final
The character used for the right border.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
top String
The character used for the top border.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

all → const Border
A full box border using standard box-drawing characters.
none → const Border
No border on any side.