debugTextPaint property
TextPaint
get
debugTextPaint
Returns a TextPaint object with the debugColor set as color for the text.
Implementation
TextPaint get debugTextPaint {
if (!_debugTextPaintCache.isCacheValid([debugColor])) {
final textPaint = TextPaint(
style: TextStyle(color: debugColor, fontSize: 12),
);
_debugTextPaintCache.updateCache(textPaint, [debugColor]);
}
return _debugTextPaintCache.value!;
}