Skip to content

Commit b31efd6

Browse files
chrbayerphillwiggins
authored andcommitted
Some dart linter fixes (#171)
1 parent c81313f commit b31efd6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/src/objects/parse_acl.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
part 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;

lib/src/objects/parse_installation.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)