newRegionAttachment method

  1. @override
RegionAttachment? newRegionAttachment(
  1. Skin skin,
  2. String name,
  3. String path,
  4. Sequence? sequence,
)
override

Implementation

@override
RegionAttachment? newRegionAttachment(Skin skin, String name, String path, Sequence? sequence) {
  final result = SpineBindings.bindings.spine_atlas_attachment_loader_new_region_attachment(
      _ptr,
      skin.nativePtr.cast(),
      name.toNativeUtf8().cast<Char>(),
      path.toNativeUtf8().cast<Char>(),
      sequence?.nativePtr.cast() ?? Pointer.fromAddress(0));
  return result.address == 0 ? null : RegionAttachment.fromPointer(result);
}