Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 2b4569a

Browse files
committed
Turn @staticInterop tear-off into closure
@staticInterop members will start disallowing tear-offs, so this member should turn into a closure.
1 parent dcd78d7 commit 2b4569a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/web_ui/lib/src/engine/text/font_collection.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ class FontManager {
194194
if (_downloadedFonts.isEmpty) {
195195
return;
196196
}
197-
_downloadedFonts.forEach(domDocument.fonts!.add);
197+
for (DomFontFace font in _downloadedFonts) {
198+
domDocument.fonts!.add(font);
199+
}
198200
}
199201

200202

0 commit comments

Comments
 (0)