protected static method

Future<TSharedProtectedBoolPod> protected(
  1. String key, {
  2. bool? initialValue,
})

Implementation

static Future<TSharedProtectedBoolPod> protected(
  String key, {
  bool? initialValue,
}) async {
  final instance = TSharedProtectedBoolPod(
    key,
    fromValue: (rawValue) => rawValue,
    toValue: (value) => value,
    initialValue: initialValue,
  );
  await instance.refresh();
  return instance;
}