Invalid constant value when passing custom object as a screen parameter in flutter
i am trying to pass a custom object called "Lesson" to a screen called "ExamScreen" here is the call: goStepScreen(int statusId, Lesson lesson, BuildContext context) { if (statusId == SessionStates.Revision.getStatus()) { navigateTo(context, const ExamScreen(lesson: lesson,)); and the exam screen: class…