Skip to content

Commit

Permalink
chore: fix int value in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
darshanclevertap committed Mar 30, 2020
1 parent eefe1a9 commit 9eee473
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ class _MyAppState extends State<MyApp> {
}

void inboxMessagesDidUpdate(){
this.setState((){
this.setState(() async {
print("inboxMessagesDidUpdate called");
var unread = CleverTapPlugin.getInboxMessageUnreadCount();
var total = CleverTapPlugin.getInboxMessageCount();
int unread = await CleverTapPlugin.getInboxMessageUnreadCount();
int total = await CleverTapPlugin.getInboxMessageCount();
print("Unread count = "+unread.toString());
print("Total count = "+total.toString());
});
Expand Down

0 comments on commit 9eee473

Please sign in to comment.