format property

TimestampFormat get format

Gets the TimestampFormat for value.

Implementation

TimestampFormat get format =>
    _$TimestampFormatEnumMap.entries
        .firstWhereOrNull((entry) => entry.value == value)
        ?.key ??
    TimestampFormat.unknown;