byFormat static method
Implementation
static byFormat(OverlayFormat format) {
switch (format) {
case (OverlayFormat.cardID1):
return CardOverlay(ratio: 1.59, cornerRadius: 0.064);
case (OverlayFormat.cardID2):
return CardOverlay(ratio: 1.42, cornerRadius: 0.067);
case (OverlayFormat.cardID3):
return CardOverlay(ratio: 1.42, cornerRadius: 0.057);
case (OverlayFormat.simID000):
return CardOverlay(ratio: 1.66, cornerRadius: 0.073);
}
}