onMessageAdded property

Stream<ConsoleMessage> get onMessageAdded

Issued when new console message is added.

Implementation

Stream<ConsoleMessage> get onMessageAdded => _client.onEvent
    .where((event) => event.name == 'Console.messageAdded')
    .map((event) => ConsoleMessage.fromJson(
        event.parameters['message'] as Map<String, dynamic>));