PressureRecord constructor

PressureRecord({
  1. PressureSource? source,
  2. PressureState? state,
  3. Iterable<PressureFactor>? factors,
  4. double? time,
})

Implementation

factory PressureRecord(
        {PressureSource? source,
        PressureState? state,
        Iterable<PressureFactor>? factors,
        double? time}) =>
    PressureRecord._(
        source: source?.value ?? undefined,
        state: state?.value ?? undefined,
        factors: factors?.map((e) => e.value) ?? undefined,
        time: time ?? undefined);