SvgLoader<T> class abstract

A BytesLoader that parses a SVG data in an isolate and creates a vector_graphics binary representation.

Implementers
Annotations
  • @immutable

Constructors

SvgLoader.new()
See class doc.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cacheKey() SvgCacheKey
Create an object that can be used to uniquely identify this asset and loader combination.
getTheme() SvgTheme
Returns the svg theme.
loadBytes() Future<ByteData>
This method intentionally avoids using await to avoid unnecessary event loop turns. This is meant to to help tests in particular.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepareMessage() Future<T?>
Will be called
provideSvg(T? message) String
Will be called in compute with the result of prepareMessage.
toString() String
A string representation of this object.
inherited

Operators

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