imageText function
Create an image from text (default font).
Implementation
Image imageText(String text, int fontSize, Color color) {
return Image.fromRef(
library.ImageText(
string.toNative(text),
fontSize,
color.ref,
),
);
}