Dart
dart:html
OffscreenCanvasRenderingContext2D
measureText method
measureText
description
measureText
method
Null safety
TextMetrics
measureText
(
String
text
)
Implementation
TextMetrics measureText(String text) native;
Dart
dart:html
OffscreenCanvasRenderingContext2D
measureText method
OffscreenCanvasRenderingContext2D class
Properties
canvas
direction
fillStyle
filter
font
globalAlpha
globalCompositeOperation
hashCode
imageSmoothingEnabled
imageSmoothingQuality
lineCap
lineDashOffset
lineJoin
lineWidth
miterLimit
runtimeType
shadowBlur
shadowColor
shadowOffsetX
shadowOffsetY
strokeStyle
textAlign
textBaseline
Methods
arc
arcTo
beginPath
bezierCurveTo
clearRect
clip
closePath
commit
createImageData
createLinearGradient
createPattern
createRadialGradient
drawImage
ellipse
fill
fillRect
fillText
getImageData
getLineDash
isPointInPath
isPointInStroke
lineTo
measureText
moveTo
noSuchMethod
putImageData
quadraticCurveTo
rect
resetTransform
restore
rotate
save
scale
setLineDash
setTransform
stroke
strokeRect
strokeText
toString
transform
translate
Operators
operator ==