LottieComposition class

Properties

bounds Rectangle<int>
no setter
characters Map<int, FontCharacter>
no setter
duration Duration
no setter
durationFrames double
no setter
endFrame double
no setter
fonts Map<String, Font>
no setter
frameRate double
no setter
hasDashPattern bool
Used to determine if an animation can be drawn with hardware acceleration.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasImages bool
no setter
images Map<String, LottieImageAsset>
no setter
layers List<Layer>
no setter
markers List<Marker>
no setter
maskAndMatteCount int
Used to determine if an animation can be drawn with hardware acceleration.
no setter
name String?
final
onWarning ↔ WarningCallback?
getter/setter pair
performanceTracker → PerformanceTracker
no setter
performanceTrackingEnabled bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seconds double
no setter
startFrame double
no setter
warnings List<String>
no setter

Methods

addWarning(String warning) → void
getMarker(String markerName) Marker?
getPrecomps(String? id) List<Layer>?
incrementMatteOrMaskCount(int amount) → void
layerModelForId(int id) → Layer?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
roundProgress(double progress, {required FrameRate frameRate}) double
Returns a "rounded" progress value according to the frameRate
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromByteData(ByteData data, {String? name, LottieImageProviderFactory? imageProviderFactory}) Future<LottieComposition>
fromBytes(List<int> bytes, {String? name, LottieImageProviderFactory? imageProviderFactory}) Future<LottieComposition>