DurationType constructor

const DurationType(
  1. TimeUnit unit
)

Creates a duration type with unit resolution.

Implementation

const DurationType(this.unit);