onBackgroundServiceEventReceived property
Stream<BackgroundServiceEvent>
get
onBackgroundServiceEventReceived
Called with all existing backgroundServiceEvents when enabled, and all new events afterwards if enabled and recording.
Implementation
Stream<BackgroundServiceEvent> get onBackgroundServiceEventReceived => _client
.onEvent
.where(
(event) =>
event.name == 'BackgroundService.backgroundServiceEventReceived',
)
.map(
(event) => BackgroundServiceEvent.fromJson(
event.parameters['backgroundServiceEvent'] as Map<String, dynamic>,
),
);