File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,13 @@ class Cross implements BasicShape {
4141 /// Overriding the `==` operator.
4242 @override
4343 bool operator == (Object other) {
44- if (other is ! Cross ){
44+ if (other is ! Cross ) {
4545 return false ;
4646 }
47- for (int i = 0 ; i< grid.length; i++ ){
48- for (int j = 0 ; i < grid[i].length; j++ ){
49- if (validatePosition (i, j)){
50- if (other.grid[i][j] != grid[i][j]){
47+ for (int i = 0 ; i < grid.length; i++ ) {
48+ for (int j = 0 ; j < grid[i].length; j++ ) {
49+ if (validatePosition (i, j)) {
50+ if (other.grid[i][j] != grid[i][j]) {
5151 return false ;
5252 }
5353 }
@@ -61,8 +61,8 @@ class Cross implements BasicShape {
6161 /// containing the same elements.
6262 @override
6363 Cross copy () => Cross .fromList (
64- grid.map ((List <int > e) => < int > [...e]).toList (),
65- );
64+ grid.map ((List <int > e) => < int > [...e]).toList (),
65+ );
6666
6767 /// It prints the cross
6868 ///
You can’t perform that action at this time.
0 commit comments