optional<T> static method
OptionalIO<T>
optional<T>({
- T? seedValue,
- required String semantics,
- bool sync = true,
- bool isBehavior = true,
- bool acceptEmpty = true,
- bool isDistinct = false,
- bool printLog = true,
- FetchCallback<
T, dynamic> ? fetch, - T? onReset()?,
- PersistConfig<
T?> ? persistConfig,
Implementation
static OptionalIO<T> optional<T>({
T? seedValue,
required String semantics,
bool sync = true,
bool isBehavior = true,
bool acceptEmpty = true,
bool isDistinct = false,
bool printLog = true,
FetchCallback<T, dynamic>? fetch,
T? Function()? onReset,
PersistConfig<T?>? persistConfig,
}) {
return OptionalIO<T>(
semantics: semantics,
seedValue: seedValue,
sync: sync,
isBehavior: isBehavior,
acceptEmpty: acceptEmpty,
printLog: printLog,
isDistinct: isDistinct,
fetch: fetch,
onReset: onReset,
persistConfig: persistConfig,
);
}