diff --git a/packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/remote_constraint_provider.dart b/packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/remote_constraint_provider.dart index 79acce7bda..331086bf8f 100644 --- a/packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/remote_constraint_provider.dart +++ b/packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/remote_constraint_provider.dart @@ -51,8 +51,10 @@ class DefaultRemoteLoggingConstraintProvider Timer? _timer; + /// Whether the periodic fetch is running. bool isRunning = false; + /// Stops the periodic fetch. void stop() { _timer?.cancel(); isRunning = false; @@ -102,7 +104,7 @@ class DefaultRemoteLoggingConstraintProvider uri, headers: { ...headers, - HttpHeaders.acceptHeader: 'application/json; charset=utf-8' + HttpHeaders.acceptHeader: 'application/json; charset=utf-8', }, );