duration method

Timeline duration(
  1. dynamic duration
)

Implementation

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