absoluteAngle property

double absoluteAngle

The resulting angle after all the ancestors and the components own angle has been applied.

Implementation

double get absoluteAngle {
  return ancestors()
      .whereType<PositionComponent>()
      .fold<double>(angle, (totalAngle, c) => totalAngle + c.angle);
}