calculateBackgroundImageRepeat method
Maps Adaptive Card fillMode to ImageRepeat tiling behavior.
Implementation
ImageRepeat calculateBackgroundImageRepeat(String? fillMode) {
final myFillMode = fillMode?.toLowerCase();
switch (myFillMode) {
case 'repeatvertically':
return ImageRepeat.repeatY;
case 'repeathorizontally':
return ImageRepeat.repeatX;
case 'repeat':
return ImageRepeat.repeat;
default:
return ImageRepeat.noRepeat;
}
}