createdAt property

  1. @JsonKey(includeToJson: false)
DateTime createdAt

Indicates when the message was created.

Returns the latest between localCreatedAt and remoteCreatedAt. If both are null, returns DateTime.now.

Implementation

@JsonKey(includeToJson: false)
DateTime get createdAt => localCreatedAt ?? remoteCreatedAt ?? DateTime.now();