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