getDuration method

int getDuration()

Implementation

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