ModelCounter constructor
const
ModelCounter(
- int value
Define the field as a counter.
The base value is given as value
, and the value is increased or decreased by increment.
By passing this to the server, it is possible to stably increase or decrease the value.
フィールドをカウンターとして定義します。
ベースの値をvalue
として与え、incrementで値を増減していきます。
これをサーバーに渡すことで安定して値の増減を行うことができます。
Implementation
const factory ModelCounter(int value) = _ModelCounter;