RemoteValueBlop<T>.staticLoader constructor Null safety

RemoteValueBlop<T>.staticLoader(
  1. FutureOr<T> loader(
      ),
    1. {bool reloadOnCreate = true,
    2. bool keepOldDataOnReload = false}
    )

    Implementation

    RemoteValueBlop.staticLoader(
      FutureOr<T> Function() loader, {
      bool reloadOnCreate = true,
      this.keepOldDataOnReload = false,
    })  : loaderBloc = Cubits.fromValue(loader),
          super(RemoteModel.initial()) {
      if (reloadOnCreate) reload();
    }