Skip to content

Commit

Permalink
Fix formatting latest Dart (#1463)
Browse files Browse the repository at this point in the history
  • Loading branch information
marandaneto authored May 22, 2023
1 parent c73ab67 commit 6572f8d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
10 changes: 6 additions & 4 deletions dart/lib/src/protocol/sentry_event.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ class SentryEvent with SentryEventLike<SentryEvent> {
DateTime? timestamp,
Map<String, String>? modules,
Map<String, String>? tags,
@Deprecated('Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible')
Map<String, dynamic>? extra,
@Deprecated(
'Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible')
Map<String, dynamic>? extra,
List<String>? fingerprint,
List<Breadcrumb>? breadcrumbs,
List<SentryException>? exceptions,
Expand Down Expand Up @@ -205,8 +206,9 @@ class SentryEvent with SentryEventLike<SentryEvent> {
SentryLevel? level,
String? culprit,
Map<String, String>? tags,
@Deprecated('Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible')
Map<String, dynamic>? extra,
@Deprecated(
'Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible')
Map<String, dynamic>? extra,
List<String>? fingerprint,
SentryUser? user,
Contexts? contexts,
Expand Down
6 changes: 3 additions & 3 deletions dart/lib/src/protocol/sentry_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class SentryRequest {
Map<String, String>? headers,
Map<String, String>? env,
@Deprecated('Will be removed in v8. Use [data] instead')
Map<String, String>? other,
Map<String, String>? other,
}) : _data = data,
_headers = headers != null ? Map.from(headers) : null,
// Look for a 'Set-Cookie' header (case insensitive) if not given.
Expand All @@ -91,7 +91,7 @@ class SentryRequest {
Map<String, String>? headers,
Map<String, String>? env,
@Deprecated('Will be removed in v8. Use [data] instead')
Map<String, String>? other,
Map<String, String>? other,
}) {
return SentryRequest(
url: uri.toString(),
Expand Down Expand Up @@ -149,7 +149,7 @@ class SentryRequest {
Map<String, String>? headers,
Map<String, String>? env,
@Deprecated('Will be removed in v8. Use [data] instead')
Map<String, String>? other,
Map<String, String>? other,
bool removeCookies = false,
}) =>
SentryRequest(
Expand Down
10 changes: 6 additions & 4 deletions dart/lib/src/protocol/sentry_transaction.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ class SentryTransaction extends SentryEvent {
String? transaction,
dynamic throwable,
Map<String, String>? tags,
@Deprecated('Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible')
Map<String, dynamic>? extra,
@Deprecated(
'Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible')
Map<String, dynamic>? extra,
SentryUser? user,
Contexts? contexts,
List<Breadcrumb>? breadcrumbs,
Expand Down Expand Up @@ -118,8 +119,9 @@ class SentryTransaction extends SentryEvent {
SentryLevel? level,
String? culprit,
Map<String, String>? tags,
@Deprecated('Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible')
Map<String, dynamic>? extra,
@Deprecated(
'Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible')
Map<String, dynamic>? extra,
List<String>? fingerprint,
SentryUser? user,
Contexts? contexts,
Expand Down
4 changes: 2 additions & 2 deletions dart/lib/src/protocol/sentry_user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SentryUser {
this.name,
Map<String, dynamic>? data,
@Deprecated('Will be removed in v8. Use [data] instead')
Map<String, dynamic>? extras,
Map<String, dynamic>? extras,
}) : assert(
id != null ||
username != null ||
Expand Down Expand Up @@ -145,7 +145,7 @@ class SentryUser {
String? ipAddress,
String? segment,
@Deprecated('Will be removed in v8. Use [data] instead')
Map<String, dynamic>? extras,
Map<String, dynamic>? extras,
String? name,
SentryGeo? geo,
Map<String, dynamic>? data,
Expand Down

0 comments on commit 6572f8d

Please sign in to comment.