void setAnimation(String state, {int? fromFrame}) { if (_state == state) return; resetAnimation(state, fromFrame: fromFrame); }