exists property

bool get exists

Returns true if the document existed in this snapshot.

Implementation

bool get exists => document != null;