convertImage method
Converts a base64 encoded string to a Uint8List.
Returns the decoded image as a Uint8List, or null if decoding fails.
Implementation
Uint8List? convertImage(String base64Image) {
try {
return base64Decode(base64Image);
} catch (error) {
return null;
}
}