NudgeProvider constructor

NudgeProvider({
  1. Key? key,
  2. required Widget child,
  3. dynamic log(
    1. String
    )?,
  4. required Nudge nudgeInstance,
  5. List<NudgeUi> plugins = const [],
})

Implementation

NudgeProvider({
  super.key,
  required this.child,
  this.log,
  required this.nudgeInstance,
  this.plugins = const [],
}){
  nudge = nudgeInstance; // Assign the instance here
}