final CurvedNavigationBarState navBarState = _bottomNavigationKey.currentState;
navBarState.setPage(1);
I am getting below error in this code part:
A value of type 'State<StatefulWidget>?' can't be assigned to a variable of type 'CurvedNavigationBarState'.
Try changing the type of the variable, or casting the right-hand type to 'CurvedNavigationBarState'.
Kindly suggest what is the issue and how can I solve it. Thanks a lot.
I am using null safety version of this package: https://pub.dev/packages/curved_navigation_bar/versions/0.4.0-nullsafety.0/example
I have used below example to check this package before adding it to my project, which code is as:
onPressed function has below code:
I am getting below error in this code part:
Kindly suggest what is the issue and how can I solve it. Thanks a lot.