protected static method

Async<TSharedProtectedStringListPod> protected(
  1. String key, {
  2. List<String>? initialValue,
})

Implementation

static Async<TSharedProtectedStringListPod> protected(
  String key, {
  List<String>? initialValue,
}) {
  final finalInitialValue = initialValue ?? const [];
  return TSharedProtectedStringListPod.create(
    key,
    fromValue: (rawValue) => rawValue ?? finalInitialValue,
    toValue: (value) => value,
    initialValue: finalInitialValue,
  );
}