Line class
Class to generate SVG lines
Constructors:
Line(
{required this.x1,
required this.y1,
required this.x2,
required this.y2,
this.id,
this.stroke,
this.strokeWidth,
this.strokeDasharray,
this.style,
this.transform,
this.unit,
this.visibility = Visibility.inherit});
- Implemented types
Constructors
- Line({required double x1, required double y1, required double x2, required double y2, String? id, Color? stroke, StrokeWidth? strokeWidth, StrokeDasharray? strokeDasharray, String? style, String? transform, Unit? unit, Visibility? visibility = Visibility.inherit})
-
Line constructor
x1
start x coordinate pointy1
start y coordinate pointx2
end x coordinate pointy2
end y coordinate pointid
widget id to made some reference in the SVG filestroke
stroke line colorstrokeWidth
stroke line widthstrokeDasharray
stroke line dash stylestyle
custom css styletransform
custom css transformationunit
unit used in the parameters, default is px (pixel)]visibility
visibility of the element, default is inherit
Properties
- fill ↔ Color?
-
getter/setter pairoverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String?
-
getter/setter pairoverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stroke ↔ Color?
-
getter/setter pairoverride
- strokeDasharray ↔ StrokeDasharray?
-
getter/setter pairoverride
- strokeWidth ↔ StrokeWidth?
-
getter/setter pairoverride
- style ↔ String?
-
getter/setter pairoverride
- transform ↔ String?
-
getter/setter pairoverride
- unit ↔ Unit?
-
getter/setter pairoverride
- visibility ↔ Visibility?
-
getter/setter pairoverride
- x1 ↔ double
-
getter/setter pair
- x2 ↔ double
-
getter/setter pair
- y1 ↔ double
-
getter/setter pair
- y2 ↔ double
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
toXML(
) → String -
Convert the Svg structure to XML string
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited