getMixByName method

double getMixByName(
  1. String fromName,
  2. String toName
)

Implementation

double getMixByName(String fromName, String toName) {
  final fromNative = fromName.toNativeUtf8(allocator: _allocator);
  final toNative = toName.toNativeUtf8(allocator: _allocator);
  final duration = _bindings.spine_animation_state_data_get_mix_by_name(_data, fromNative.cast(), toNative.cast());
  _allocator.free(fromNative);
  _allocator.free(toNative);
  return duration;
}