RemoteValueBlop<T> constructor Null safety

RemoteValueBlop<T>(
  1. Cubit<FutureOr<T> Function()> loaderBloc,
  2. {bool reloadOnLoaderChange = true,
  3. bool reloadOnCreate = true,
  4. bool keepOldDataOnReload = false}
)

Implementation

RemoteValueBlop(
  this.loaderBloc, {
  bool reloadOnLoaderChange = true,
  bool reloadOnCreate = true,
  this.keepOldDataOnReload = false,
}) : super(RemoteModel.initial()) {
  if (reloadOnLoaderChange) listenBlocs([loaderBloc], reload);
  if (reloadOnCreate) reload();
}