optional<T> static method
Implementation
static OptionalStreamOutput<T> optional<T>(
final Stream<T> source, {
T? seedValue,
required String semantics,
bool sync = true,
bool printLog = true,
bool isBehavior = true,
T? Function()? onReset,
PersistConfig<T?>? persistConfig,
bool skipError = false,
}) {
return OptionalStreamOutput<T>(
source,
semantics: semantics,
seedValue: seedValue,
sync: sync,
isBehavior: isBehavior,
printLog: printLog,
onReset: onReset,
persistConfig: persistConfig,
skipError: skipError,
);
}