@@ -317,11 +317,10 @@ void main() {
317
317
});
318
318
319
319
test ('BorderDirectional constructor' , () {
320
- final Null $null = null ;
321
- expect (() => new BorderDirectional (top: $null), throwsAssertionError);
322
- expect (() => new BorderDirectional (start: $null), throwsAssertionError);
323
- expect (() => new BorderDirectional (end: $null), throwsAssertionError);
324
- expect (() => new BorderDirectional (bottom: $null), throwsAssertionError);
320
+ expect (() => new BorderDirectional (top: nonconst (null )), throwsAssertionError);
321
+ expect (() => new BorderDirectional (start: nonconst (null )), throwsAssertionError);
322
+ expect (() => new BorderDirectional (end: nonconst (null )), throwsAssertionError);
323
+ expect (() => new BorderDirectional (bottom: nonconst (null )), throwsAssertionError);
325
324
});
326
325
327
326
test ('BorderDirectional.merge' , () {
@@ -622,7 +621,7 @@ void main() {
622
621
});
623
622
624
623
test ('BorderDirectional hashCode' , () {
625
- final BorderSide side = const BorderSide (width: 2.0 );
624
+ final BorderSide side = new BorderSide (width: nonconst ( 2.0 ) );
626
625
expect (new BorderDirectional (top: side).hashCode, new BorderDirectional (top: side).hashCode);
627
626
expect (new BorderDirectional (top: side).hashCode, isNot (new BorderDirectional (bottom: side).hashCode));
628
627
});
0 commit comments