ModelTimestamp constructor
const
ModelTimestamp([
- DateTime? value
Define the field as a timestamp.
The base value is given as value
. If not given, the current time is set.
By passing this to the server, the timestamp on the server side is stored as data.
フィールドをタイムスタンプとして定義します。
ベースの値をvalue
として与えます。与えられなかった場合現在時刻がセットされます。
これをサーバーに渡すことでサーバー側のタイムスタンプがデータとして保存されます。
Implementation
const factory ModelTimestamp([DateTime? value]) = _ModelTimestamp;