Skip to content

Commit e7fb980

Browse files
Switch docs for setShared and isShared
The descriptions for these two methods appear to have been switched. This change switches them back to how they probably should be.
1 parent a222579 commit e7fb980

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/location.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ class OneSignalLocation {
1010
return await _channel.invokeMethod("OneSignal#requestPermission");
1111
}
1212

13-
/// Allows you to determine if the user's location data is shared with OneSignal.
14-
/// This allows you to do things like geofenced notifications, etc.
13+
/// Set whether location is currently shared with OneSignal.
1514
Future<void> setShared(bool shared) async {
1615
return await _channel.invokeMethod("OneSignal#setShared", shared);
1716
}
1817

19-
/// Set whether location is currently shared with OneSignal.
18+
/// Allows you to determine if the user's location data is shared with OneSignal.
19+
/// This allows you to do things like geofenced notifications, etc.
2020
Future<bool> isShared() async {
2121
return await _channel.invokeMethod("OneSignal#isShared");
2222
}

0 commit comments

Comments
 (0)