filterOnDidLoad method

  1. @protected
  2. @mustCallSuper
Future<List<TModel>> filterOnDidLoad(
  1. List<TModel> value
)

Callback called after loading.

If loaded is true, it will not be executed.

If value is passed and a modified version of it is returned, it becomes the value of DocumentBase.

ロード後に呼ばれるコールバック。

loadedtrueの場合は実行されません。

リストの中のDocumentBase

Implementation

@protected
@mustCallSuper
Future<List<TModel>> filterOnDidLoad(List<TModel> value) async {
  return await Future.wait(
    value.map((e) async {
      final res = await e.filterOnDidLoad(e.value);
      if (res != e.value) {
        e._value = res;
      }
      return e;
    }),
  );
}