setDuration method

AbstractDurationFormatter setDuration(
  1. Duration duration
)

Set from dart Duration object.

Implementation

AbstractDurationFormatter setDuration(Duration duration)
{
  setDurationMillis( duration.inMilliseconds.toDouble() );

  return this;
}