1
0
Fork 0
flutter_demo_energy/lib/models/velocity.dart

4 lines
132 B
Dart

const _factor = 3.6;
toKmPerHour(double mPerSecond) => mPerSecond * _factor;
tomPerSecond(double kmPerHour) => kmPerHour / _factor;