optional<T> static method

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

Implementation

static OptionalInput<T> optional<T>({
  T? seedValue,
  required String semantics,
  bool sync = true,
  bool isBehavior = true,
  bool printLog = true,
  bool acceptEmpty = true,
  bool isDistinct = false,
  T? Function()? onReset,
  PersistConfig<T>? persistConfig,
}) {
  return OptionalInput<T>(
    semantics: semantics,
    seedValue: seedValue,
    sync: sync,
    isBehavior: isBehavior,
    printLog: printLog,
    acceptEmpty: acceptEmpty,
    isDistinct: isDistinct,
    onReset: onReset,
    persistConfig: persistConfig,
  );
}