getDuration method
Implementation
int getDuration() {
if (widget.duration != null && widget.duration! > 0) {
return widget.duration!;
}
return duration;
}
int getDuration() {
if (widget.duration != null && widget.duration! > 0) {
return widget.duration!;
}
return duration;
}