Skip to content

Commit

Permalink
updated readme sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
JasperEssien2 committed Jun 27, 2022
1 parent 2221154 commit 2e6247f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,11 @@ There are two ways of handling notification actions.
_pushNewScreen(message);
});
final isEmpty = await stream.isEmpty;
/// If there was a pending event before [HomeScreen] was created, handle it
if (!isEmpty) {
final last = await stream.last;
final last = FlutterAlarmNotification.cache;
if (last != null) {
_pushNewScreen(last);
}
if (last.isNotEmpty) {
_pushNewScreen(last);
}
}
Expand Down

0 comments on commit 2e6247f

Please sign in to comment.