Flutter error: LateInitializationError

The LateInitializationError in Flutter typically occurs when trying to access a variable that was declared with the “late” keyword but was not initialized before its first use….