SkeletonDataFlutter class

Flutter wrapper for SkeletonData that provides convenient loading methods

Inheritance

Properties

animations → ArrayAnimation
The skeleton's animations.
no setterinherited
audioPath ↔ String
The path to the audio folder as defined in Spine, or null if nonessential data was not exported.
getter/setter pairinherited
bones → ArrayBoneData
The skeleton's bones, sorted parent first. The root bone is always the first bone.
no setterinherited
constraints → ArrayConstraintData
The skeleton's constraints.
no setterinherited
defaultSkin ↔ Skin?
The skeleton's default skin. By default this skin contains all attachments that were not in a skin in Spine.
getter/setter pairinherited
events → ArrayEventData
The skeleton's events.
no setterinherited
fps ↔ double
The dopesheet FPS in Spine. Available only when nonessential data was exported.
getter/setter pairinherited
hash ↔ String
The skeleton data hash. This value will change if any of the skeleton data has changed.
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
height ↔ double
The height of the skeleton's axis aligned bounding box in the setup pose.
getter/setter pairinherited
imagesPath ↔ String
The path to the images folder as defined in Spine, or null if nonessential data was not exported.
getter/setter pairinherited
name ↔ String
The skeleton's name, which by default is the name of the skeleton data file when possible, or null when a name hasn't been set.
getter/setter pairinherited
nativePtr → Pointer<NativeType>
Get the native pointer for FFI calls
no setterinherited
referenceScale ↔ double
Baseline scale factor for applying physics and other effects based on distance to non-scalable properties, such as angle or scale. Default is 100.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
skins → ArraySkin
All skins, including the default skin.
no setterinherited
slots → ArraySlotData
The skeleton's slots in the setup pose draw order.
no setterinherited
version ↔ String
The Spine version used to export this data, or NULL.
getter/setter pairinherited
width ↔ double
The width of the skeleton's axis aligned bounding box in the setup pose.
getter/setter pairinherited
x ↔ double
The X coordinate of the skeleton's axis aligned bounding box in the setup pose.
getter/setter pairinherited
y ↔ double
The Y coordinate of the skeleton's axis aligned bounding box in the setup pose.
getter/setter pairinherited

Methods

dispose() → void
inherited
findAnimation(String animationName) → Animation?
Returns May be NULL.
inherited
findBone(String boneName) → BoneData?
Finds a bone by comparing each bone's name. It is more efficient to cache the results of this method than to call it multiple times.
inherited
findEvent(String eventDataName) → EventData?
Returns May be NULL.
inherited
findSkin(String skinName) → Skin?
Returns May be NULL.
inherited
findSliderAnimations(ArrayAnimation animations) → ArrayAnimation
Collects animations used by slider constraints.
inherited
findSlot(String slotName) → SlotData?
Returns May be NULL.
inherited
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

Static Methods

fromAsset(AtlasFlutter atlas, String skeletonFile, {AssetBundle? bundle}) → Future<SkeletonDataFlutter>
Loads a SkeletonDataFlutter from the file skeletonFile in the root bundle or the optionally provided bundle. Uses the provided atlasFlutter to resolve attachment images.
fromFile(AtlasFlutter atlasFlutter, String skeletonFile) → Future<SkeletonDataFlutter>
Loads a SkeletonDataFlutter from the file skeletonFile. Uses the provided atlasFlutter to resolve attachment images.
fromHttp(AtlasFlutter atlasFlutter, String skeletonURL) → Future<SkeletonDataFlutter>
Loads a SkeletonDataFlutter from the URL skeletonURL. Uses the provided atlasFlutter to resolve attachment images.
fromMemory(AtlasFlutter atlas, String skeletonFile, Future<Uint8List> loadFile(String name)) → Future<SkeletonDataFlutter>
Loads a SkeletonDataFlutter using a custom file loading function.