If currAnim is null, then the result is the empty String. Otherwise, this returns the current state name.
String get currentStateName { return currAnim?.name ?? ""; }