Skin constructor
Skin(
- String name
Constructs a new empty skin using the given name
. Skins constructed this way must be manually disposed via the dispose method
if they are no longer used.
Implementation
Skin(String name) {
final nativeName = name.toNativeUtf8(allocator: _allocator);
_skin = _bindings.spine_skin_create(nativeName.cast());
_allocator.free(nativeName);
_isCustomSkin = true;
}