D.assert(textDirection!=null,()=>"Horizontal $runtimeType with multiple children has a null textDirection, so the layout order is undefined.");
break;
caseAxis.vertical:
D.assert(verticalDirection!=null,()=>"Vertical $runtimeType with multiple children has a null verticalDirection, so the layout order is undefined.");
break;
}
}
if(mainAxisAlignment==MainAxisAlignment.start||
mainAxisAlignment==MainAxisAlignment.end){
switch(direction){
caseAxis.horizontal:
D.assert(textDirection!=null,()=>"Horizontal $runtimeType with $mainAxisAlignment has a null textDirection, so the alignment cannot be resolved.");
break;
caseAxis.vertical:
D.assert(verticalDirection!=null,()=>"Vertical $runtimeType with $mainAxisAlignment has a null verticalDirection, so the alignment cannot be resolved.");
break;
}
}
if(crossAxisAlignment==CrossAxisAlignment.start||
crossAxisAlignment==CrossAxisAlignment.end){
switch(direction){
caseAxis.horizontal:
D.assert(verticalDirection!=null,()=>"Horizontal $runtimeType with $crossAxisAlignment has a null verticalDirection, so the alignment cannot be resolved.");
break;
caseAxis.vertical:
D.assert(textDirection!=null,()=>"Vertical $runtimeType with $crossAxisAlignment has a null textDirection, so the alignment cannot be resolved.");