refresh method
Requests a fresh value set from the remote source.
The provider should update its in-memory state after this call.
Implementation
@override
Future<void> refresh() async {
try {
await _remoteConfig.fetch();
await _remoteConfig.activate();
_lastFetchedAt = DateTime.now().toUtc();
PrimekitLogger.info('Config refreshed.', tag: _tag);
} on Exception catch (error, stack) {
PrimekitLogger.error(
'Failed to refresh Firebase Remote Config.',
tag: _tag,
error: error,
stackTrace: stack,
);
}
}