create static method

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

Implementation

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