diff --git a/flutter_local_notifications/CHANGELOG.md b/flutter_local_notifications/CHANGELOG.md index 41f73e886..6b4103f19 100644 --- a/flutter_local_notifications/CHANGELOG.md +++ b/flutter_local_notifications/CHANGELOG.md @@ -1,3 +1,7 @@ +# [1.2.0+2] + +* Make the static `values` propeerty of the `Priority` class return `List` instead of being dynamic and added API docs for the property. + # [1.2.0+1] * The static `values` properties for the `Day` and `Importance` classes now return `List` and `List` respectively instead of being dynamic diff --git a/flutter_local_notifications/lib/src/platform_specifics/android/enums.dart b/flutter_local_notifications/lib/src/platform_specifics/android/enums.dart index 65ad3ebca..94a4528a1 100644 --- a/flutter_local_notifications/lib/src/platform_specifics/android/enums.dart +++ b/flutter_local_notifications/lib/src/platform_specifics/android/enums.dart @@ -49,7 +49,8 @@ class Priority { static const High = Priority(1); static const Max = Priority(2); - static get values => [Min, Low, Default, High, Max]; + /// All the possible values for the [Priority] enumeration. + static List get values => [Min, Low, Default, High, Max]; final int value; diff --git a/flutter_local_notifications/pubspec.yaml b/flutter_local_notifications/pubspec.yaml index 3877307d1..da774ead3 100644 --- a/flutter_local_notifications/pubspec.yaml +++ b/flutter_local_notifications/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_local_notifications description: A cross platform plugin for displaying and scheduling local notifications for Flutter applications with the ability to customise for each platform. -version: 1.2.0+1 +version: 1.2.0+2 homepage: https://github.com/MaikuB/flutter_local_notifications/tree/master/flutter_local_notifications dependencies: