watchSecretsAs<T> method
Like watchSecrets but maps each emission through fromMap.
client.watchSecretsAs(AppSecrets.fromMap).listen((s) {
setState(() => _secrets = s);
});
Implementation
Stream<T> watchSecretsAs<T>(
T Function(Map<String, String>) fromMap, {
Duration interval = const Duration(minutes: 5),
String? projectRef,
String? environmentSlug,
}) =>
watchSecrets(
interval: interval,
projectRef: projectRef,
environmentSlug: environmentSlug,
).map(fromMap);