NoSuchMethodError (NoSuchMethodError: The method 'toDate' was called on null. Receiver: null Tried calling: toDate())

Solution 1:

Either>

snapshot["aciklamaDate"].toDate()

or

data["aciklamaDate"].toDate()

calls toDate() on a null value.

Since you have the full stacktrace, you should be able to say which on it is.

That means that in the map, "aciklamaDate" does not exist. Why? Well, that is for you to find out.