14 lines
312 B
Dart
14 lines
312 B
Dart
|
class CardModel{
|
||
|
final String _name;
|
||
|
final int _calories;
|
||
|
final double _fat;
|
||
|
final double _protein;
|
||
|
|
||
|
CardModel(this._name, this._calories, this._fat, this._protein);
|
||
|
|
||
|
String get getName => _name;
|
||
|
int get getCalories => _calories;
|
||
|
double get getFat => _fat;
|
||
|
double get getProtein => _protein;
|
||
|
|
||
|
}
|