File tree 14 files changed +19
-13
lines changed
14 files changed +19
-13
lines changed Original file line number Diff line number Diff line change
1
+ ## 2.1.3
2
+
3
+ - ` operator == ` overrides no longer take nullable arguments. This is only
4
+ visible for classes that implement the interfaces defined in this package
5
+ which no longer need to also widen the argument type.
6
+
1
7
## 2.1.2
2
8
3
9
- Fix to ` Quad.copy ` ([ #221 ] ( https://github.com/google/vector_math.dart/issues/221 ) )
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ class Matrix2 {
145
145
146
146
/// Check if two matrices are the same.
147
147
@override
148
- bool operator == (Object ? other) =>
148
+ bool operator == (Object other) =>
149
149
(other is Matrix2 ) &&
150
150
(_m2storage[0 ] == other._m2storage[0 ]) &&
151
151
(_m2storage[1 ] == other._m2storage[1 ]) &&
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ class Matrix3 {
236
236
237
237
/// Check if two matrices are the same.
238
238
@override
239
- bool operator == (Object ? other) =>
239
+ bool operator == (Object other) =>
240
240
(other is Matrix3 ) &&
241
241
(_m3storage[0 ] == other._m3storage[0 ]) &&
242
242
(_m3storage[1 ] == other._m3storage[1 ]) &&
Original file line number Diff line number Diff line change @@ -521,7 +521,7 @@ class Matrix4 {
521
521
522
522
/// Check if two matrices are the same.
523
523
@override
524
- bool operator == (Object ? other) =>
524
+ bool operator == (Object other) =>
525
525
(other is Matrix4 ) &&
526
526
(_m4storage[0 ] == other._m4storage[0 ]) &&
527
527
(_m4storage[1 ] == other._m4storage[1 ]) &&
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ class Vector2 implements Vector {
96
96
97
97
/// Check if two vectors are the same.
98
98
@override
99
- bool operator == (Object ? other) =>
99
+ bool operator == (Object other) =>
100
100
(other is Vector2 ) &&
101
101
(_v2storage[0 ] == other._v2storage[0 ]) &&
102
102
(_v2storage[1 ] == other._v2storage[1 ]);
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ class Vector3 implements Vector {
104
104
105
105
/// Check if two vectors are the same.
106
106
@override
107
- bool operator == (Object ? other) =>
107
+ bool operator == (Object other) =>
108
108
(other is Vector3 ) &&
109
109
(_v3storage[0 ] == other._v3storage[0 ]) &&
110
110
(_v3storage[1 ] == other._v3storage[1 ]) &&
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ class Vector4 implements Vector {
124
124
125
125
/// Check if two vectors are the same.
126
126
@override
127
- bool operator == (Object ? other) =>
127
+ bool operator == (Object other) =>
128
128
(other is Vector4 ) &&
129
129
(_v4storage[0 ] == other._v4storage[0 ]) &&
130
130
(_v4storage[1 ] == other._v4storage[1 ]) &&
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ class Matrix2 {
145
145
146
146
/// Check if two matrices are the same.
147
147
@override
148
- bool operator == (Object ? other) =>
148
+ bool operator == (Object other) =>
149
149
(other is Matrix2 ) &&
150
150
(_m2storage[0 ] == other._m2storage[0 ]) &&
151
151
(_m2storage[1 ] == other._m2storage[1 ]) &&
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ class Matrix3 {
236
236
237
237
/// Check if two matrices are the same.
238
238
@override
239
- bool operator == (Object ? other) =>
239
+ bool operator == (Object other) =>
240
240
(other is Matrix3 ) &&
241
241
(_m3storage[0 ] == other._m3storage[0 ]) &&
242
242
(_m3storage[1 ] == other._m3storage[1 ]) &&
Original file line number Diff line number Diff line change @@ -521,7 +521,7 @@ class Matrix4 {
521
521
522
522
/// Check if two matrices are the same.
523
523
@override
524
- bool operator == (Object ? other) =>
524
+ bool operator == (Object other) =>
525
525
(other is Matrix4 ) &&
526
526
(_m4storage[0 ] == other._m4storage[0 ]) &&
527
527
(_m4storage[1 ] == other._m4storage[1 ]) &&
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ class Vector2 implements Vector {
96
96
97
97
/// Check if two vectors are the same.
98
98
@override
99
- bool operator == (Object ? other) =>
99
+ bool operator == (Object other) =>
100
100
(other is Vector2 ) &&
101
101
(_v2storage[0 ] == other._v2storage[0 ]) &&
102
102
(_v2storage[1 ] == other._v2storage[1 ]);
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ class Vector3 implements Vector {
104
104
105
105
/// Check if two vectors are the same.
106
106
@override
107
- bool operator == (Object ? other) =>
107
+ bool operator == (Object other) =>
108
108
(other is Vector3 ) &&
109
109
(_v3storage[0 ] == other._v3storage[0 ]) &&
110
110
(_v3storage[1 ] == other._v3storage[1 ]) &&
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ class Vector4 implements Vector {
124
124
125
125
/// Check if two vectors are the same.
126
126
@override
127
- bool operator == (Object ? other) =>
127
+ bool operator == (Object other) =>
128
128
(other is Vector4 ) &&
129
129
(_v4storage[0 ] == other._v4storage[0 ]) &&
130
130
(_v4storage[1 ] == other._v4storage[1 ]) &&
Original file line number Diff line number Diff line change 1
1
name : vector_math
2
- version : 2.1.2
2
+ version : 2.1.3
3
3
description : A Vector Math library for 2D and 3D applications.
4
4
repository : https://github.com/google/vector_math.dart
5
5
You can’t perform that action at this time.
0 commit comments