discontinuedPackage firebase has been discontinued and replaced by firebase_core.

exists property

bool get exists

Signals whether or not the data exists. true if the document exists.

Implementation

bool get exists => jsObject.exists;