DiagramParagraphCache constructor

DiagramParagraphCache({
  1. required int maxEntries,
  2. required int maxCodeUnits,
})

Implementation

DiagramParagraphCache({
  required this.maxEntries,
  required this.maxCodeUnits,
}) {
  if (maxEntries < 0 || maxCodeUnits < 0) {
    throw ArgumentError('Paragraph cache budgets cannot be negative.');
  }
}