Skip to content

Commit 9796661

Browse files
authored
[flutter_local_notifications] update Priority's values property (#496)
1 parent 8316c5a commit 9796661

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

flutter_local_notifications/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# [1.2.0+2]
2+
3+
* Make the static `values` propeerty of the `Priority` class return `List<Priority>` instead of being dynamic and added API docs for the property.
4+
15
# [1.2.0+1]
26

37
* The static `values` properties for the `Day` and `Importance` classes now return `List<Day>` and `List<Importance>` respectively instead of being dynamic

flutter_local_notifications/lib/src/platform_specifics/android/enums.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ class Priority {
4949
static const High = Priority(1);
5050
static const Max = Priority(2);
5151

52-
static get values => [Min, Low, Default, High, Max];
52+
/// All the possible values for the [Priority] enumeration.
53+
static List<Priority> get values => [Min, Low, Default, High, Max];
5354

5455
final int value;
5556

flutter_local_notifications/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_local_notifications
22
description: A cross platform plugin for displaying and scheduling local notifications for Flutter applications with the ability to customise for each platform.
3-
version: 1.2.0+1
3+
version: 1.2.0+2
44
homepage: https://github.com/MaikuB/flutter_local_notifications/tree/master/flutter_local_notifications
55

66
dependencies:

0 commit comments

Comments
 (0)