loadFont method Null safety

  1. @protected
  2. @visibleForTesting
Future<void> loadFont(
  1. Uint8List list,
  2. String family
)
protected">@protectedvisibleForTesting">@visibleForTesting

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).

Implementation

@protected
@visibleForTesting
Future<void> loadFont(Uint8List list, String family) {
  return loadFontFromList(list, fontFamily: family);
}