formatGravityValue static method
Implementation
static int formatGravityValue(Gravity? status) {
switch (status) {
case Gravity.centerHorizntal:
return 1;
case Gravity.left:
if (Platform.isAndroid) {
return 3;
} else {
return 0;
}
case Gravity.right:
if (Platform.isAndroid) {
return 5;
} else {
return 2;
}
default:
return 4;
}
}