SVGAParser class
You use SVGAParser to load and decode animation files.
Constructors
- SVGAParser({Duration requestTimeout = const Duration(seconds: 30), int maxInputBytes = 64 * 1024 * 1024, int maxInflatedBytes = 128 * 1024 * 1024, int maxImagePixels = 16777216, int maxDecodedImageBytes = 256 * 1024 * 1024, bool retainSourceImages = true})
-
Limits apply to downloads, inflation and decoded bitmap allocation.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxDecodedImageBytes → int
-
final
- maxImagePixels → int
-
final
- maxInflatedBytes → int
-
final
- maxInputBytes → int
-
final
- requestTimeout → Duration
-
final
- retainSourceImages → bool
-
Keep encoded media for callers that serialize the movie again.
Set false to release it after resources have been prepared.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decodeFromAssets(
String path) → Future< MovieEntity> -
decodeFromBuffer(
List< int> bytes) → Future<MovieEntity> -
decodeFromBytes(
List< int> bytes) → Future<MovieEntity> -
decodeFromURL(
String url) → Future< MovieEntity> -
isMP3Data(
Uint8List data) → bool -
Detects MP3 by ID3 tag or MPEG frame sync (
0xFFE0mask). -
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