currentStateName property

String get currentStateName

If currAnim is null, then the result is the empty String. Otherwise, this returns the current state name.

Implementation

String get currentStateName {
  return currAnim?.name ?? "";
}