Skip to content

Instantly share code, notes, and snippets.

@Zambrella
Created August 15, 2020 22:23
Show Gist options
  • Save Zambrella/2477b8da27c4c5b1b51c6d2a2a40607e to your computer and use it in GitHub Desktop.
Save Zambrella/2477b8da27c4c5b1b51c6d2a2a40607e to your computer and use it in GitHub Desktop.
void main() {
BM newBM = BM(amount: 3, discomfort: 5, bristolScale: 3, name: 'Cool name', submittedTime: 'Thursday');
print(newBM.amount);
print(newBM.name);
}
abstract class Entry {
String name;
String submittedTime;
Entry(this.name, this.submittedTime);
}
class BM extends Entry {
int bristolScale;
int discomfort;
int amount;
BM({this.amount, this.discomfort, this.bristolScale, name, submittedTime}) : super(name, submittedTime);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment