from static method

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

Converts the given duration into microseconds.

Implementation

static int from(int hour, [int minute = 0, int second = 0, int millisecond = 0, int microsecond = 0]) =>
    hour * Hour.microseconds + minute * Minute.microseconds + second * Second.microseconds +
        millisecond * Millisecond.microseconds + microsecond;