FlLine class
Defines style of a line.
Constructors
-
FlLine({Color? color, Gradient? gradient, double strokeWidth = 2, List<
int> ? dashArray}) -
Renders a line, color it by
color
, thickness is defined bystrokeWidth
, and if you want to have dashed line, you should filldashArray
, it is a circular array of dash offsets and lengths. For example, the array[5, 10]
would result in dashes 5 pixels long followed by blank spaces 10 pixels long.const
Properties
- color → Color?
-
Defines color of the line.
final
-
dashArray
→ List<
int> ? -
Defines dash effect of the line.
final
- gradient → Gradient?
-
Defines the gradient of the line.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
props
→ List<
Object?> -
Used for equality check, see
EquatableMixin
.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - strokeWidth → double
-
Defines thickness of the line.
final
Methods
-
copyWith(
{Color? color, Gradient? gradient, double? strokeWidth, List< int> ? dashArray}) → FlLine - Copies current FlLine to a new FlLine, and replaces provided values.
-
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