previousSnake property

PathNode? get previousSnake

Implementation

PathNode? get previousSnake {
  if (isBootStrap) return null;
  if (this is! Snake && previousNode != null) {
    return previousNode!.previousSnake;
  }
  return this;
}