getRowMainAxisAlignment method
dynamic
getRowMainAxisAlignment(
- dynamic gravity
Implementation
getRowMainAxisAlignment(gravity) {
var mainAxisAlignment = MainAxisAlignment.start;
switch (gravity) {
case Gravity.bottom:
break;
case Gravity.top:
break;
case Gravity.left:
mainAxisAlignment = MainAxisAlignment.start;
break;
case Gravity.right:
mainAxisAlignment = MainAxisAlignment.end;
break;
case Gravity.center:
default:
mainAxisAlignment = MainAxisAlignment.center;
break;
}
return mainAxisAlignment;
}