optional<T, ARG> static method
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< fetch,T> , ARG?> - List<
T> onReset()?, - PersistConfig<
List< ? persistConfig,T> ?> - 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,
);
}