optional<T> static method

OptionalStreamOutput<T> optional<T>(
  1. Stream<T> source, {
  2. T? seedValue,
  3. required String semantics,
  4. bool sync = true,
  5. bool printLog = true,
  6. bool isBehavior = true,
  7. T? onReset()?,
  8. PersistConfig<T?>? persistConfig,
  9. bool skipError = false,
})

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,
  );
}