protected static method

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

Implementation

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