measureTextWidth method

  1. @override
double measureTextWidth(
  1. String text
)
override

Width of text at the currently set font — mirrors Xojo g.TextWidth.

Implementation

@override
double measureTextWidth(String text) {
  ctx.font = _fontSpec;
  return ctx.measureText(text).width.toDouble();
}