setValueInternal method

  1. @protected
void setValueInternal(
  1. void value
)
inherited

Set method is used to update the current state.

The argument value is the value of the new state. If it matches the existing value, nothing is done and the process ends.

セットメソッドを使用して、現在のステートを更新します。

引数 value は、新しいステートの値です。 既存の値と一致する場合は何も行われず、処理が終了します。

Implementation

@protected
void setValueInternal(TValue? value) {
  if (_value == value) {
    return;
  }
  _value = value;
}