File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
part of flutter_parse_sdk;
2
2
3
3
/// [ParseACL] is used to control which users can access or modify a particular object
4
- /// [ParseObject] can have its own [ParceACL ]
4
+ /// [ParseObject] can have its own [ParseACL ]
5
5
/// You can grant read and write permissions separately to specific users
6
6
/// or you can grant permissions to "the public" so that, for example, any user could read a particular object but
7
7
/// only a particular set of users could write to that object
@@ -126,8 +126,8 @@ class _ACLPermissions {
126
126
_ACLPermissions (this ._readPermission, this ._writePermission);
127
127
final String _keyReadPermission = 'read' ;
128
128
final String _keyWritePermission = 'write' ;
129
- bool _readPermission;
130
- bool _writePermission;
129
+ final bool _readPermission;
130
+ final bool _writePermission;
131
131
132
132
bool getReadPermission () {
133
133
return _readPermission;
Original file line number Diff line number Diff line change @@ -206,15 +206,15 @@ class ParseInstallation extends ParseObject {
206
206
///Subscribes the device to a channel of push notifications.
207
207
void subscribeToChannel (String value) {
208
208
final List <dynamic > channel = < String > [value];
209
- // ignore: deprecated_member_use_from_same_package
210
- addUnique ( 'channels' , channel );
209
+ setAddUnique ( 'channels' , channel);
210
+ save ( );
211
211
}
212
212
213
213
///Unsubscribes the device to a channel of push notifications.
214
214
void unsubscribeFromChannel (String value) {
215
215
final List <dynamic > channel = < String > [value];
216
- // ignore: deprecated_member_use_from_same_package
217
- removeAll ( 'channels' , channel );
216
+ setRemove ( 'channels' , channel);
217
+ save ( );
218
218
}
219
219
220
220
///Returns an <List<String>> containing all the channel names this device is subscribed to.
You can’t perform that action at this time.
0 commit comments