fromString static method
Implementation
static IosContentMode fromString(String str) {
switch (str) {
case 'scaleToFill':
return scaleToFill;
case 'aspectFit':
return scaleAspectFit;
case 'aspectFill':
return scaleAspectFill;
case 'redraw':
return redraw;
case 'center':
return center;
case 'top':
return top;
case 'bottom':
return bottom;
case 'left':
return left;
case 'right':
return right;
case 'topLeft':
return topLeft;
case 'topRight':
return topRight;
case 'bottomLeft':
return bottomLeft;
case 'bottomRight':
return bottomRight;
default:
throw SplashMasterException(message: 'Invalid content mode.');
}
}