create static method

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

Implementation

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