duration property
int
get
duration
Implementation
int get duration {
if (start != null && end != null) {
return end!.difference(start!).inMilliseconds;
}
return 0;
}
int get duration {
if (start != null && end != null) {
return end!.difference(start!).inMilliseconds;
}
return 0;
}