create static method

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

Implementation

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