SizedPicture class

Holds data for showing a vector image inside the chart.

for example:

Future<SizedPicture> loadSvg() async {
   const String rawSvg = 'your svg string';
   final DrawableRoot svgRoot = await svg.fromSvgString(rawSvg, rawSvg);
   final sizedPicture = SizedPicture(svgRoot.toPicture(), 14, 14);
   return sizedPicture;
 }

Constructors

SizedPicture(Picture picture, int width, int height)
picture is the showing image, it can retrieve from a svg icon, for example:

Properties

hashCode int
The hash code for this object.
no setterinherited
height int
height of our picture.
getter/setter pair
picture Picture
Is the showing image.
getter/setter pair
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
width int
width of our picture.
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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited