A side of a border of a box.
Constants
- none → BorderSide
-
A hairline black border that is not rendered.
const BorderSide(width: 0.0, style: BorderStyle.none)
Static Methods
-
lerp(
BorderSide a, BorderSide b, double t) → BorderSide -
Linearly interpolate between two border sides.
Constructors
- BorderSide({Color color: const Color(0xFF000000), double width: 1.0, BorderStyle style: BorderStyle.solid })
-
Creates the side of a border.
const
Properties
- color → Color
-
The color of this side of the border.
read-only - hashCode → int
-
read-only
- style → BorderStyle
-
The style of this side of the border.
read-only - width → double
-
The width of this side of the border, in logical pixels. A zero-width border is a hairline border. To omit the border entirely, set the style to BorderStyle.none.
read-only - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
Methods
-
copyWith(
{Color color, double width, BorderStyle style }) → BorderSide -
Creates a copy of this border but with the given fields replaced with the new values.
-
toString(
) → String -
Returns a string representation of this object.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited