base64StringToMemoryImage static method
Converts a base64-encoded string to a MemoryImage.
This method decodes the provided base64-encoded string and returns a MemoryImage that contains the decoded image data.
Example usage:
String base64String = '...'; // Replace with your base64-encoded image string
MemoryImage memoryImage = base64StringToMemoryImage(base64String);
// Use the memoryImage in a Flutter widget.
Returns a MemoryImage containing the decoded image data.
Implementation
static MemoryImage base64StringToMemoryImage(String base64String) {
return MemoryImage(base64Decode(base64String));
}