diff --git a/lib/persistent_tab_view.widget.dart b/lib/persistent_tab_view.widget.dart index e173c8b6..e9940e86 100644 --- a/lib/persistent_tab_view.widget.dart +++ b/lib/persistent_tab_view.widget.dart @@ -104,7 +104,7 @@ class PersistentTabView extends PersistentTabViewBase { this.screenTransitionAnimation = const ScreenTransitionAnimation(), }) : assert(itemCount == screens.length, "screens and items length should be same. If you are using the onPressed callback function of 'PersistentBottomNavBarItem', enter a dummy screen like Container() in its place in the screens"), - assert(handleAndroidBackButtonPress && onWillPop != null, + assert(handleAndroidBackButtonPress && onWillPop == null, "If you declare the onWillPop function, you will have to handle the back function functionality yourself as your onWillPop function will override the defualt function."), super( key: key,