duration method

Preview duration(
  1. double duration
)

Implementation

Preview duration(double duration) {
  _duration = duration;
  return this;
}