getDistance property

double get getDistance

Implementation

double get getDistance => object.position.distanceTo(target);