Skip to content

Commit e92693b

Browse files
authored
chore(smithy,auth): Dart 3.3.0 Beta Analysis Errors (#4354)
1 parent f60e65b commit e92693b

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

packages/auth/amplify_auth_cognito_dart/lib/src/asf/asf_device_info_collector.windows.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ final class ASFDeviceInfoWindows extends ASFDeviceInfoPlatform {
102102
final langCodepageArr = lpTranslate.value;
103103
final n = lenTranslate.value / sizeOf<_LANGANDCODEPAGE>();
104104
final langCodepages = [
105+
// TODO(equartey): `.elementAt(i)` is depreciated in Dart 3.3.0. Use `(langCodepageArr + i).ref` when min Dart version is 3.3.0 or higher
106+
// ignore: deprecated_member_use
105107
for (var i = 0; i < n; i++) langCodepageArr.elementAt(i).ref,
106108
];
107109
for (final _LANGANDCODEPAGE(:wLanguage, :wCodepage) in langCodepages) {

packages/smithy/smithy/lib/src/ast/shapes/collection_shape.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class NamedMembersMap extends DelegatingMap<String, MemberShape> {
2323
NamedMembersMap(super.members);
2424

2525
@override
26-
bool operator ==(Object? other) =>
26+
bool operator ==(Object other) =>
2727
identical(this, other) ||
2828
other is NamedMembersMap &&
2929
const MapEquality<String, MemberShape>().equals(this, other);

packages/smithy/smithy/lib/src/ast/shapes/shape_map.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ShapeMap extends DelegatingMap<ShapeId, Shape> {
1212
ShapeMap(super.shapes);
1313

1414
@override
15-
bool operator ==(Object? other) =>
15+
bool operator ==(Object other) =>
1616
identical(this, other) ||
1717
other is ShapeMap &&
1818
const MapEquality<ShapeId, Shape>().equals(this, other);

packages/smithy/smithy/lib/src/ast/shapes/trait_map.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TraitMap extends DelegatingMap<ShapeId, Trait> {
2727
T expectTrait<T extends Trait>() => values.firstWhere((t) => t is T) as T;
2828

2929
@override
30-
bool operator ==(Object? other) =>
30+
bool operator ==(Object other) =>
3131
identical(this, other) ||
3232
other is TraitMap &&
3333
const MapEquality<ShapeId, Trait>().equals(this, other);

packages/smithy/smithy_codegen/lib/src/util/config_parameter.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ParameterLocation {
3434
ParameterLocation._(val & other.val);
3535

3636
@override
37-
bool operator ==(Object? other) =>
37+
bool operator ==(Object other) =>
3838
identical(this, other) || other is ParameterLocation && val == other.val;
3939

4040
@override

0 commit comments

Comments
 (0)