onFontsUpdated property

Stream<FontFace> get onFontsUpdated

Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded web font.

Implementation

Stream<FontFace> get onFontsUpdated => _client.onEvent
    .where((event) => event.name == 'CSS.fontsUpdated')
    .map((event) =>
        FontFace.fromJson(event.parameters['font'] as Map<String, dynamic>));