DateTimeKind.local constructor

const DateTimeKind.local({
  1. String? name = 'DateTime',
  2. bool encodeUtc = true,
  3. List<Trait>? traits,
})

DateTimeKind that converts values to UTC before encoding and to local time zone after decoding.

Implementation

const DateTimeKind.local({
  super.name = 'DateTime',
  this.encodeUtc = true,
  super.traits,
})  : decodeUtc = false,
      super.constructor();