From 6572f8d71180920b30f2c566a955504cb215ecb1 Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com> Date: Mon, 22 May 2023 09:30:16 +0200 Subject: [PATCH] Fix formatting latest Dart (#1463) --- dart/lib/src/protocol/sentry_event.dart | 10 ++++++---- dart/lib/src/protocol/sentry_request.dart | 6 +++--- dart/lib/src/protocol/sentry_transaction.dart | 10 ++++++---- dart/lib/src/protocol/sentry_user.dart | 4 ++-- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/dart/lib/src/protocol/sentry_event.dart b/dart/lib/src/protocol/sentry_event.dart index 946d49edd6..1c0048def4 100644 --- a/dart/lib/src/protocol/sentry_event.dart +++ b/dart/lib/src/protocol/sentry_event.dart @@ -13,8 +13,9 @@ class SentryEvent with SentryEventLike { DateTime? timestamp, Map? modules, Map? tags, - @Deprecated('Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible') - Map? extra, + @Deprecated( + 'Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible') + Map? extra, List? fingerprint, List? breadcrumbs, List? exceptions, @@ -205,8 +206,9 @@ class SentryEvent with SentryEventLike { SentryLevel? level, String? culprit, Map? tags, - @Deprecated('Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible') - Map? extra, + @Deprecated( + 'Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible') + Map? extra, List? fingerprint, SentryUser? user, Contexts? contexts, diff --git a/dart/lib/src/protocol/sentry_request.dart b/dart/lib/src/protocol/sentry_request.dart index f6c371bfa1..42cb145fd5 100644 --- a/dart/lib/src/protocol/sentry_request.dart +++ b/dart/lib/src/protocol/sentry_request.dart @@ -72,7 +72,7 @@ class SentryRequest { Map? headers, Map? env, @Deprecated('Will be removed in v8. Use [data] instead') - Map? other, + Map? other, }) : _data = data, _headers = headers != null ? Map.from(headers) : null, // Look for a 'Set-Cookie' header (case insensitive) if not given. @@ -91,7 +91,7 @@ class SentryRequest { Map? headers, Map? env, @Deprecated('Will be removed in v8. Use [data] instead') - Map? other, + Map? other, }) { return SentryRequest( url: uri.toString(), @@ -149,7 +149,7 @@ class SentryRequest { Map? headers, Map? env, @Deprecated('Will be removed in v8. Use [data] instead') - Map? other, + Map? other, bool removeCookies = false, }) => SentryRequest( diff --git a/dart/lib/src/protocol/sentry_transaction.dart b/dart/lib/src/protocol/sentry_transaction.dart index eae52f9450..28927009c9 100644 --- a/dart/lib/src/protocol/sentry_transaction.dart +++ b/dart/lib/src/protocol/sentry_transaction.dart @@ -26,8 +26,9 @@ class SentryTransaction extends SentryEvent { String? transaction, dynamic throwable, Map? tags, - @Deprecated('Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible') - Map? extra, + @Deprecated( + 'Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible') + Map? extra, SentryUser? user, Contexts? contexts, List? breadcrumbs, @@ -118,8 +119,9 @@ class SentryTransaction extends SentryEvent { SentryLevel? level, String? culprit, Map? tags, - @Deprecated('Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible') - Map? extra, + @Deprecated( + 'Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible') + Map? extra, List? fingerprint, SentryUser? user, Contexts? contexts, diff --git a/dart/lib/src/protocol/sentry_user.dart b/dart/lib/src/protocol/sentry_user.dart index 678f56c872..3b2f2cab1c 100644 --- a/dart/lib/src/protocol/sentry_user.dart +++ b/dart/lib/src/protocol/sentry_user.dart @@ -43,7 +43,7 @@ class SentryUser { this.name, Map? data, @Deprecated('Will be removed in v8. Use [data] instead') - Map? extras, + Map? extras, }) : assert( id != null || username != null || @@ -145,7 +145,7 @@ class SentryUser { String? ipAddress, String? segment, @Deprecated('Will be removed in v8. Use [data] instead') - Map? extras, + Map? extras, String? name, SentryGeo? geo, Map? data,