onContextCreated property

Stream<BaseAudioContext> get onContextCreated

Notifies that a new BaseAudioContext has been created.

Implementation

Stream<BaseAudioContext> get onContextCreated => _client.onEvent
    .where((event) => event.name == 'WebAudio.contextCreated')
    .map((event) => BaseAudioContext.fromJson(
        event.parameters['context'] as Map<String, dynamic>));