onStyleSheetAdded property

Stream<CSSStyleSheetHeader> get onStyleSheetAdded

Fired whenever an active document stylesheet is added.

Implementation

Stream<CSSStyleSheetHeader> get onStyleSheetAdded => _client.onEvent
    .where((event) => event.name == 'CSS.styleSheetAdded')
    .map((event) => CSSStyleSheetHeader.fromJson(
        event.parameters['header'] as Map<String, dynamic>));