Files
biteplan/lib/features/converter/models/conversion_entry.dart
T

15 lines
329 B
Dart
Raw Normal View History

2026-05-16 17:41:26 +02:00
class ConversionEntry {
final String food;
final String method;
final double yieldFactor;
const ConversionEntry({
required this.food,
required this.method,
required this.yieldFactor,
});
double rawToCooked(double raw) => raw * yieldFactor;
double cookedToRaw(double cooked) => cooked / yieldFactor;
}