NudgeProvider constructor
NudgeProvider({})
Implementation
NudgeProvider({
super.key,
required this.child,
this.log,
this.navigatorkey,
required this.nudgeInstance,
this.plugins = const [],
}){
if(navigatorkey!=null){
NudgeProviderState.navigatorKey = navigatorkey!;
}
// else{
// NudgeProviderState.navigatorKey = GlobalKey<NavigatorState>();
// }
nudge = nudgeInstance; // Assign the instance here
}