Time.fromSeconds constructor

Time.fromSeconds(
  1. int seconds
)

Creates a Time period instance from a total seconds.

Implementation

factory Time.fromSeconds(int seconds) {
  return Time.fromDuration(Duration(seconds: seconds));
}