ModelTimestamp.now constructor

const ModelTimestamp.now()

Define the field as a timestamp.

The current time is returned in the same way as DateTime.now.

By passing this to the server, the timestamp on the server side is stored as data.

フィールドをタイムスタンプとして定義します。

DateTime.nowと同じ様に現在時刻が返されます。

これをサーバーに渡すことでサーバー側のタイムスタンプがデータとして保存されます。

Implementation

const factory ModelTimestamp.now() = _ModelTimestampWithNow;