ModelCounter constructor

const ModelCounter(
  1. 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;