readDateTimeOrNull method

DateTime? readDateTimeOrNull(
  1. int offset, {
  2. bool staticOffset = true,
})

Implementation

@pragma('vm:prefer-inline')
DateTime? readDateTimeOrNull(int offset, {bool staticOffset = true}) {
  final time = readLongOrNull(offset, staticOffset: staticOffset);
  if (time != null) {
    return DateTime.fromMicrosecondsSinceEpoch(time, isUtc: true).toLocal();
  }
}