GradientBorderSide class
A gradient side of a border of a box.
- Annotations
Constructors
- GradientBorderSide({required Gradient gradient, double width = 1.0, BorderStyle style = BorderStyle.solid})
-
Creates the gradient side of a border.
const
- GradientBorderSide.lerp(GradientBorderSide a, GradientBorderSide b, double t)
-
Linearly interpolate between two gradient border sides.
factory
Properties
- gradient → Gradient
-
A gradient to use when filling the shape.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → BorderStyle
-
The style of this side of the border.
final
- width → double
-
The width of this side of the border, in logical pixels.
final
Methods
-
copyWith(
{Gradient? gradient, double? width, BorderStyle? style}) → GradientBorderSide - Creates a copy of this gradient border but with the given fields replaced with the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scale(
double t) → GradientBorderSide - Returns a new gradient border with its width and style scaled by the given factor.
-
toPaint(
Rect rect) → Paint - Creates a Paint object that will draw the line in this border's style.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- none → const GradientBorderSide
- A hairline transparent border that is not rendered.