LateInitializationError: Field has not been initialized in Flutter
When you use late
it means that variable can be lazily initialised, So, before use it somewhere, you need to Initialise thus you cannot make null checks on that, If you want to make null checks on it then try ?
which makes that variable a nullable.
So remove late
and add ?
QuerySnapshot <Map<String, dynamic>>? searchSnapShot;