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 11part of flutter_parse_sdk;
22
33/// [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 ]
55/// You can grant read and write permissions separately to specific users
66/// or you can grant permissions to "the public" so that, for example, any user could read a particular object but
77/// only a particular set of users could write to that object
@@ -126,8 +126,8 @@ class _ACLPermissions {
126126 _ACLPermissions (this ._readPermission, this ._writePermission);
127127 final String _keyReadPermission = 'read' ;
128128 final String _keyWritePermission = 'write' ;
129- bool _readPermission;
130- bool _writePermission;
129+ final bool _readPermission;
130+ final bool _writePermission;
131131
132132 bool getReadPermission () {
133133 return _readPermission;
Original file line number Diff line number Diff line change @@ -206,15 +206,15 @@ class ParseInstallation extends ParseObject {
206206 ///Subscribes the device to a channel of push notifications.
207207 void subscribeToChannel (String value) {
208208 final List <dynamic > channel = < String > [value];
209- // ignore: deprecated_member_use_from_same_package
210- addUnique ( 'channels' , channel );
209+ setAddUnique ( 'channels' , channel);
210+ save ( );
211211 }
212212
213213 ///Unsubscribes the device to a channel of push notifications.
214214 void unsubscribeFromChannel (String value) {
215215 final List <dynamic > channel = < String > [value];
216- // ignore: deprecated_member_use_from_same_package
217- removeAll ( 'channels' , channel );
216+ setRemove ( 'channels' , channel);
217+ save ( );
218218 }
219219
220220 ///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