PdfDate class

A PDF date value, preserving both the raw string and the parsed DateTime.

PDF dates use the format D:YYYYMMDDHHmmSSOHH'mm' (where O is +, -, or Z). The D: prefix is optional in practice and the string may be truncated. When parsing fails, value is null but raw is always preserved so callers can inspect or log the original string.

Constructors

PdfDate({required String raw, required DateTime? value})
Creates a PdfDate with the given raw string and parsed DateTime.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
raw String
The raw date string as stored in the PDF Info dictionary.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value DateTime?
The parsed DateTime, or null if raw could not be parsed.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override