onContextWillBeDestroyed property
Stream<GraphObjectId>
get
onContextWillBeDestroyed
Notifies that an existing BaseAudioContext will be destroyed.
Implementation
Stream<GraphObjectId> get onContextWillBeDestroyed => _client.onEvent
.where((event) => event.name == 'WebAudio.contextWillBeDestroyed')
.map((event) =>
GraphObjectId.fromJson(event.parameters['contextId'] as String));