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

Commit 995ef10

Browse files
committed
compatibility with old CanvasKit
1 parent 2944a02 commit 995ef10

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/web_ui/lib/src/engine/canvaskit/canvaskit_api.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,13 @@ extension SkParagraphBuilderNamespaceExtension on SkParagraphBuilderNamespace {
18681868
SkParagraphStyle paragraphStyle,
18691869
TypefaceFontProvider? fontManager,
18701870
);
1871-
external bool RequiresClientICU();
1871+
1872+
bool RequiresClientICU() {
1873+
if (!js_util.hasProperty(this, 'RequiresClientICU')) {
1874+
return false;
1875+
}
1876+
return js_util.callMethod(this, 'RequiresClientICU', const <Object>[],) as bool;
1877+
}
18721878
}
18731879

18741880
@JS()

0 commit comments

Comments
 (0)