toMap method Null safety

Map<T, double> toMap()

Implementation

Map<T, double> toMap() => _masses;