BorderSide class
Represents one side of a CSS Border.
Use BorderSide to specify the style, color, and width of an
individual border edge. Combine BorderSide instances with Border.only
or Border.symmetric or use the shorthand Border factory for all sides.
Constructors
- BorderSide({BorderStyle? style = BorderStyle.solid, Color? color, Unit? width})
-
Create a border side with the given
style,color, andwidth.const - BorderSide.dashed({Color? color, Unit? width})
-
Create a BorderStyle.dashed border side with the given color and width.
const
- BorderSide.dotted({Color? color, Unit? width})
-
Create a BorderStyle.dotted border side with the given color and width.
const
- BorderSide.double({Color? color, Unit? width})
-
Create a BorderStyle.double border side with the given color and width.
const
- BorderSide.groove({Color? color, Unit? width})
-
Create a BorderStyle.groove border side with the given color and width.
const
- BorderSide.none()
-
Display no border on this side.
const
- BorderSide.ridge({Color? color, Unit? width})
-
Create a BorderStyle.ridge border side with the given color and width.
const
- BorderSide.solid({Color? color, Unit? width})
-
Create a BorderStyle.solid border side with the given color and width.
const
Properties
- color → Color?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → BorderStyle?
-
final
- width → Unit?
-
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