DistanceAndIndex constructor Null safety

DistanceAndIndex(
  1. double distance,
  2. int index
)

Implementation

DistanceAndIndex(this.distance, this.index);