optional<T, ARG> static method

OptionalListOutput<T, ARG> optional<T, ARG>({
  1. List<T>? seedValue,
  2. required String semantics,
  3. bool sync = true,
  4. bool isBehavior = true,
  5. bool printLog = true,
  6. int? forceCapacity,
  7. required FetchCallback<List<T>, ARG?> fetch,
  8. List<T> onReset()?,
  9. PersistConfig<List<T>?>? persistConfig,
  10. bool skipError = false,
})
override

Implementation

static OptionalListOutput<T, ARG> optional<T, ARG>({
  List<T>? seedValue,
  required String semantics,
  bool sync = true,
  bool isBehavior = true,
  bool printLog = true,
  int? forceCapacity,
  required FetchCallback<List<T>, ARG?> fetch,
  List<T> Function()? onReset,
  PersistConfig<List<T>?>? persistConfig,
  bool skipError = false,
}) {
  return OptionalListOutput<T, ARG>(
    semantics: semantics,
    seedValue: seedValue,
    sync: sync,
    isBehavior: isBehavior,
    fetch: fetch,
    printLog: printLog,
    onReset: onReset,
    forceCapacity: forceCapacity,
    persistConfig: persistConfig,
  );
}