save method
Data can be saved.
The newValue
is saved as it is as data. If Null is given, it is not executed.
If the save is successful, value is replaced with newValue
.
If the save fails, an attempt is made to restore to the previous data.
It is possible to wait for saving with await
.
データの保存を行うことができます。
newValue
がそのままデータとして保存されます。Nullが与えられた場合実行されません。
保存に成功した場合、valueがnewValue
に置き換えられます。
保存に失敗した場合、前のデータへの復元を試みます。
await
で保存を待つことが可能です。
Implementation
Future<void> save(T? newValue) => throw UnimplementedError(
"This feature is not implemented. Please replace it with actual documentation.",
);