Skip to content

DurationOps ​

extensionDurationOpsonint

Convenience constructors for creating Duration values from integer literals, e.g. 5.seconds, 200.milliseconds.

Properties ​

day extension no setter ​

Durationgetday

A Duration of this many days.

Available on int, provided by the DurationOps extension

Implementation
dart
Duration get day => Duration(days: this);

days extension no setter ​

Durationgetdays

A Duration of this many days.

Available on int, provided by the DurationOps extension

Implementation
dart
Duration get days => Duration(days: this);

hour extension no setter ​

Durationgethour

A Duration of this many hours.

Available on int, provided by the DurationOps extension

Implementation
dart
Duration get hour => Duration(hours: this);

hours extension no setter ​

Durationgethours

A Duration of this many hours.

Available on int, provided by the DurationOps extension

Implementation
dart
Duration get hours => Duration(hours: this);

microsecond extension no setter ​

Durationgetmicrosecond

A Duration of this many microseconds.

Available on int, provided by the DurationOps extension

Implementation
dart
Duration get microsecond => Duration(microseconds: this);

microseconds extension no setter ​

Durationgetmicroseconds

A Duration of this many microseconds.

Available on int, provided by the DurationOps extension

Implementation
dart
Duration get microseconds => Duration(microseconds: this);

millisecond extension no setter ​

Durationgetmillisecond

A Duration of this many milliseconds.

Available on int, provided by the DurationOps extension

Implementation
dart
Duration get millisecond => Duration(milliseconds: this);

milliseconds extension no setter ​

Durationgetmilliseconds

A Duration of this many milliseconds.

Available on int, provided by the DurationOps extension

Implementation
dart
Duration get milliseconds => Duration(milliseconds: this);

minute extension no setter ​

Durationgetminute

A Duration of this many minutes.

Available on int, provided by the DurationOps extension

Implementation
dart
Duration get minute => Duration(minutes: this);

minutes extension no setter ​

Durationgetminutes

A Duration of this many minutes.

Available on int, provided by the DurationOps extension

Implementation
dart
Duration get minutes => Duration(minutes: this);

second extension no setter ​

Durationgetsecond

A Duration of this many seconds.

Available on int, provided by the DurationOps extension

Implementation
dart
Duration get second => Duration(seconds: this);

seconds extension no setter ​

Durationgetseconds

A Duration of this many seconds.

Available on int, provided by the DurationOps extension

Implementation
dart
Duration get seconds => Duration(seconds: this);