getPath method

String getPath(
  1. String basePath,
  2. int index
)

Implementation

String getPath(String basePath, int index) {
  final nativeBasePath = basePath.toNativeUtf8(allocator: _allocator);
  final Pointer<Utf8> path = _bindings.spine_sequence_get_path(_sequence, nativeBasePath.cast(), index).cast();
  final result = path.toDartString();
  _allocator.free(nativeBasePath);
  _allocator.free(path);
  return result;
}