load method
Reads the corresponding document.
The return value is a T
object, and the loaded data is available as is.
The value is stored in value and can be retrieved from there.
対応したドキュメントの読込を行います。
戻り値はT
オブジェクトが返され、そのまま読込済みのデータの利用が可能になります。
またvalueに値が保存されているためそこから値を取得することができます。
Implementation
FutureOr<T?> load() async {
final document = _document;
final res = await _ref._load(document);
document._value = document.fromMap(
document.filterOnLoad(ModelFieldValue.fromMap(res)),
);
return value;
}