setTextLayoutCacheCap method
Set the text layout cache capacity (0 = disabled).
Implementation
Future<void> setTextLayoutCacheCap(int cap) async {
final safeCap = cap < 0 ? 0 : cap;
await _configure(GridConfig()
..rendering = (RenderConfig()..textLayoutCacheCap = safeCap));
}