Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Some dart linter fixes #171

Merged
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions lib/src/objects/parse_acl.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
part of flutter_parse_sdk;

/// [ParseACL] is used to control which users can access or modify a particular object
/// [ParseObject] can have its own [ParceACL]
/// [ParseObject] can have its own [ParseACL]
/// You can grant read and write permissions separately to specific users
/// or you can grant permissions to "the public" so that, for example, any user could read a particular object but
/// only a particular set of users could write to that object
Expand Down Expand Up @@ -126,8 +126,8 @@ class _ACLPermissions {
_ACLPermissions(this._readPermission, this._writePermission);
final String _keyReadPermission = 'read';
final String _keyWritePermission = 'write';
bool _readPermission;
bool _writePermission;
final bool _readPermission;
final bool _writePermission;

bool getReadPermission() {
return _readPermission;
Expand Down
8 changes: 4 additions & 4 deletions lib/src/objects/parse_installation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,15 @@ class ParseInstallation extends ParseObject {
///Subscribes the device to a channel of push notifications.
void subscribeToChannel(String value) {
final List<dynamic> channel = <String>[value];
// ignore: deprecated_member_use_from_same_package
addUnique('channels', channel);
setAddUnique('channels', channel);
save();
}

///Unsubscribes the device to a channel of push notifications.
void unsubscribeFromChannel(String value) {
final List<dynamic> channel = <String>[value];
// ignore: deprecated_member_use_from_same_package
removeAll('channels', channel);
setRemove('channels', channel);
save();
}

///Returns an <List<String>> containing all the channel names this device is subscribed to.
Expand Down