fromString static method
Implementation
static AndroidGravity fromString(String str) {
switch (str) {
case 'center':
return center;
case 'clip_horizontal':
return clipHorizontal;
case 'clip_vertical':
return clipVertical;
case 'fill_horizontal':
return fillHorizontal;
case 'fill':
return fill;
case 'center_vertical':
return centerVertical;
case 'bottom':
return bottom;
case 'fill_vertical':
return fillVertical;
case 'center_horizontal':
return centerHorizontal;
case 'top':
return top;
case 'end':
return end;
case 'left':
return left;
case 'right':
return right;
case 'start':
return start;
default:
throw SplashMasterException(message: 'Invalid android gravity.');
}
}