mirror of
https://github.com/nisrulz/flutter-examples.git
synced 2025-08-23 05:56:20 +08:00
20 lines
246 B
Dart
20 lines
246 B
Dart
enum Sex {
|
|
male,
|
|
female,
|
|
}
|
|
|
|
// User body model class
|
|
class BodyModel {
|
|
Sex sex;
|
|
int height;
|
|
int weight;
|
|
int age;
|
|
|
|
BodyModel({
|
|
required this.sex,
|
|
required this.height,
|
|
required this.weight,
|
|
required this.age,
|
|
});
|
|
}
|