distance property

double? distance
getter/setter pair

The line double? distance; is declaring a property named distance of type double in the Poi class. The double? indicates that the distance property can hold a decimal number or a null value. The ? denotes that the property is nullable, meaning it can be assigned a null value.

Implementation

double? distance;