customAlignment method
Determines text alignment based on the customization configuration.
Accepts values:
- 0: Left/Start alignment
- 1: Center alignment
- 2: Right/End alignment
- 3: Justify alignment
- Default: Center alignment
Implementation
TextAlign customAlignment({required Map customizacao}) {
return switch (customizacao['alignment']) {
0 => TextAlign.start,
1 => TextAlign.center,
2 => TextAlign.end,
3 => TextAlign.justify,
_ => TextAlign.center,
};
}