Skip to content
This repository was archived by the owner on Oct 5, 2021. It is now read-only.

conver serviceStatus of single stream to multi stream #57

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -98,7 +98,8 @@ class LocationPermissions {
assert(Platform.isAndroid,
'Listening to service state changes is only supported on Android.');

return _eventChannel!.receiveBroadcastStream().map((dynamic status) =>
status ? ServiceStatus.enabled : ServiceStatus.disabled);
return _eventChannel!.receiveBroadcastStream().asBroadcastStream().map(
(dynamic status) =>
status ? ServiceStatus.enabled : ServiceStatus.disabled);
}
}