void resetAnimation(String state, {int? fromFrame}) { playing = true; _state = state; if (fromFrame != null) { index = fromFrame; } }