InteractiveParseContext class

Holds parsed XML state for an SVG document.

  • document: the full parsed XmlDocument.
  • root: the <svg> root element (may be null if parsing failed).
  • viewBox: the parsed viewBox rect when available. This is used to map SVG coordinates into widget coordinates when computing bounds.
Available extensions
Annotations
  • @CopyWith.new()

Constructors

InteractiveParseContext({XmlElement? root, XmlDocument? document, Rect? viewBox})
Creates a new InteractiveParseContext with the given fields.

Properties

copyWith → _$InteractiveParseContextCWProxy

Available on InteractiveParseContext, provided by the $InteractiveParseContextCopyWith extension

Returns a callable class used to build a new instance with modified fields. Example: instanceOfInteractiveParseContext.copyWith(...) or instanceOfInteractiveParseContext.copyWith.fieldName(...).
no setter
document → XmlDocument?
The full parsed XML document.
final
hashCode → int
The hash code for this object.
no setterinherited
root → XmlElement?
The root
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
viewBox → Rect?
The parsed viewBox rectangle, if available.
final

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