FhirTime.fromUnits constructor

FhirTime.fromUnits({
  1. dynamic hour,
  2. dynamic minute,
  3. dynamic second,
  4. dynamic millisecond,
})

Implementation

factory FhirTime.fromUnits(
        {dynamic hour,
        dynamic minute,
        dynamic second,
        dynamic millisecond}) =>
    FhirTime(
      '${hour.toString().padLeft(2, '0')}'
      ':${minute.toString().padLeft(2, '0')}'
      ':${second.toString().padLeft(2, '0')}'
      '.${millisecond.toString().padLeft(3, '0')}',
    );