PathIconData class
Path icon data represents the icon as a Path and a viewBox which specify a rectangle in user space which is mapped to the bounds of the viewport.
Constructors
- PathIconData({required Path path, required Rect viewBox, String? id})
-
Create data from the given path and its viewBox describing the effective area.
const
- PathIconData.fromData(String data, {Rect? viewBox, PathFillType? fillType})
-
Parse the
data
(as SVG path'sd
data) and create a path.factory - PathIconData.fromSvg(String data, {PathFillType fillType = PathFillType.evenOdd})
-
Parse the
data
SVG document and merges all the shapes found in the document as a single path.factory - PathIconData.sanitized({required Path path, Rect? viewBox, PathFillType? fillType})
-
Create data from the given
path
.factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String?
-
An optional identifier that may help for debug.
final
- path → Path
-
The fill path data that represents the icon shape.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- viewBox → Rect
-
The area of the path that is effective.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
override