from static method

int from(
  1. int hour, [
  2. int minute = 0,
  3. int second = 0
])

Converts the given duration into seconds.

Implementation

static int from(int hour, [int minute = 0, int second = 0]) =>
    hour * Hour.seconds + minute * Minute.seconds + second;