wip: null safety
parent
ba54b04d67
commit
01a0710d68
|
@ -5,9 +5,7 @@ import '/models/plot_point.dart';
|
|||
import '/models/power_duration.dart';
|
||||
|
||||
class CriticalPower extends PowerDuration {
|
||||
CriticalPower({required List<Event> records}) {
|
||||
PowerDuration(records: records);
|
||||
}
|
||||
CriticalPower({required List<Event> records}) : super(records: records);
|
||||
|
||||
List<DoublePlotPoint> asWorkList() {
|
||||
final List<DoublePlotPoint> plotPoints = <DoublePlotPoint>[];
|
||||
|
@ -21,8 +19,8 @@ class CriticalPower extends PowerDuration {
|
|||
}
|
||||
});
|
||||
|
||||
plotPoints.sort(
|
||||
(DoublePlotPoint a, DoublePlotPoint b) => a.domain!.compareTo(b.domain!));
|
||||
plotPoints.sort((DoublePlotPoint a, DoublePlotPoint b) =>
|
||||
a.domain!.compareTo(b.domain!));
|
||||
return plotPoints;
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue