DynamicBorderSide class
An enhanced BorderSide class. Supports gradient, different strokeJoin and strokeCap Also supports partial drawing by changing the begin, end, and shift
Constructors
- DynamicBorderSide.new({Color color = const Color(0xFF000000), double width = 1.0, BorderStyle style = BorderStyle.solid, Gradient? gradient, Dimension? begin, Dimension? end, Dimension? shift, StrokeJoin strokeJoin = StrokeJoin.miter, StrokeCap strokeCap = StrokeCap.butt})
-
const
-
DynamicBorderSide.fromJson(Map<
String, dynamic> map)
Properties
- begin → Dimension?
-
final
- color → Color
-
The color of this side of the border.
final
- end → Dimension?
-
final
- gradient → Gradient?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shift → Dimension?
-
final
- strokeCap → StrokeCap
-
final
- strokeJoin → StrokeJoin
-
final
- 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(
{Color? color, Gradient? gradient, double? width, BorderStyle? style, Dimension? begin, Dimension? end, Dimension? shift, StrokeJoin? strokeJoin, StrokeCap? strokeCap}) → DynamicBorderSide -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scale(
double t) → DynamicBorderSide -
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
Constants
- none → const DynamicBorderSide
- A hairline black border that is not rendered.