updated project style guidelines
This commit is contained in:
@ -8,16 +8,12 @@ class ArbitraryAppointment {
|
||||
|
||||
ArbitraryAppointment({this.webuntis, this.custom});
|
||||
|
||||
bool hasWebuntis() {
|
||||
return webuntis != null;
|
||||
}
|
||||
bool hasWebuntis() => webuntis != null;
|
||||
|
||||
bool hasCustom() {
|
||||
return custom != null;
|
||||
}
|
||||
bool hasCustom() => custom != null;
|
||||
|
||||
void handlers(void Function(GetTimetableResponseObject webuntisData) webuntis, void Function(CustomTimetableEvent customData) custom) {
|
||||
if(hasWebuntis()) webuntis(this.webuntis!);
|
||||
if(hasCustom()) custom(this.custom!);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user