measureString method
Measures the specified string when drawn with this font.
Implementation
SizeF measureString(String strValue, Font font) {
const Rectangle<num> rectF = Rectangle<num>(0, 0, 1800, 100);
final Rectangle<num> rect = getMeasuredRectangle(strValue, font, rectF);
return SizeF(rect.width.toDouble(), rect.height.toDouble());
}