add stopAnimationByName
This commit is contained in:
@@ -950,6 +950,12 @@ class FilamentControllerFFI extends FilamentController {
|
||||
_sceneManager!, entity, index, loop, reverse, replaceActive, crossfade);
|
||||
}
|
||||
|
||||
@override
|
||||
Future stopAnimationByName(FilamentEntity entity, String name) async {
|
||||
var animations = await getAnimationNames(entity);
|
||||
await stopAnimation(entity, animations.indexOf(name));
|
||||
}
|
||||
|
||||
@override
|
||||
Future playAnimationByName(FilamentEntity entity, String name,
|
||||
{bool loop = false,
|
||||
|
||||
Reference in New Issue
Block a user