Unverified Commit 36b99832 authored by Jason Simmons's avatar Jason Simmons Committed by GitHub

Dartdoc comment for FontLoader.loadFont (#23882)

parent 3aa104fe
...@@ -65,6 +65,10 @@ class FontLoader { ...@@ -65,6 +65,10 @@ class FontLoader {
return Future.wait(loadFutures.toList()); return Future.wait(loadFutures.toList());
} }
/// Hook called to load a font asset into the engine.
///
/// Subclasses may override this to replace the default loading logic with
/// custom logic (for example, to mock the underlying engine API in tests).
@protected @protected
@visibleForTesting @visibleForTesting
Future<void> loadFont(Uint8List list, String family) { Future<void> loadFont(Uint8List list, String family) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment