isFollowingPosition property

bool get isFollowingPosition

Checks if the camera is actively following the current position.

Returns true when the map is in follow position mode, tracking the device's real or simulated position. Returns false when position tracking is inactive.

This getter considers the camera to be following only when it is actively tracking the position, excluding animation phases ("flying" to position). Use getIsFollowingPosition with the alsoFlyToPosition parameter for more control over this distinction.

Follow position mode is activated using startFollowingPosition and can be stopped with stopFollowingPosition.

See also:

Implementation

bool get isFollowingPosition {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'MapView',
    'isFollowingPosition',
    args: true,
  );

  return resultString['result'];
}