Offset.fromSeconds constructor

  1. @Possible({RangeError})
Offset.fromSeconds(
  1. int seconds
)

Creates an Offset from the total seconds.

Contract

Throws a RangeError if seconds is outside the valid range.

Example

Offset.fromSeconds(28800); // +08:00

Implementation

@Possible({RangeError})
factory Offset.fromSeconds(int seconds) => _Offset.fromSeconds(seconds);