Timestamp.now constructor Null safety

Timestamp.now()

Constructs a Timestamp instance with current date and time.

Timestamp has no timezone/offset to UTC information. This could have been written this way with the same result. Timestamp.fromDateTime(DateTime.now().toUtc())

Implementation

factory Timestamp.now() => Timestamp.fromDateTime(DateTime.now());