duration method

Trim duration(
  1. dynamic duration
)

Implementation

Trim duration(dynamic duration) {
  _duration = duration;
  return this;
}