Border class

Typed CSS border shorthand value.

Constructors

Border({Object width = 1, Object color = 'currentColor', String style = 'solid', BorderSide? top, BorderSide? right, BorderSide? bottom, BorderSide? left})
Creates a border shorthand value or directional border.
const
Border.all({Object width = 1, Object color = 'currentColor', String style = 'solid'})
Creates a border for all sides.
const
Border.fromBorderSide(BorderSide side)
Creates a border from a single BorderSide.

Properties

bottom → BorderSide?
final
color → Object
Border color.
final
hashCode → int
The hash code for this object.
no setterinherited
left → BorderSide?
final
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → String
Border style.
final
top → BorderSide?
Optional specific side overrides.
final
width → Object
Border width.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCss() → String
Converts this border to a CSS shorthand.
toString() → String
A string representation of this object.
override

Operators

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

Constants

none → const Border
CSS none border.