localPosition property

  1. @override
Vector2 get localPosition

Event position in the local coordinate space of the current component.

This property is only accessible when the event is being propagated to the components via deliverAtPoint. It is an error to try to read this property at other times.

Implementation

@override
Vector2 get localPosition {
  return renderingTrace.isEmpty ? _nanPoint : renderingTrace.last;
}