playOnceOther method
Future
playOnceOther(
- String key, {
- VoidCallback? onFinish,
- VoidCallback? onStart,
- bool runToTheEnd = false,
- bool flipX = false,
- bool flipY = false,
- bool useCompFlip = false,
- Vector2? size,
- Vector2? offset,
Method used to play animation once time specific animation registred in others
Implementation
Future playOnceOther(
String key, {
VoidCallback? onFinish,
VoidCallback? onStart,
bool runToTheEnd = false,
bool flipX = false,
bool flipY = false,
bool useCompFlip = false,
Vector2? size,
Vector2? offset,
}) async {
if (others.containsKey(key) == true) {
return playOnce(
others[key]!,
onFinish: onFinish,
onStart: onStart,
runToTheEnd: runToTheEnd,
flipX: flipX,
useCompFlip: useCompFlip,
size: size,
offset: offset,
);
}
}