hasData property

bool hasData

Returns whether this snapshot contains a non-null data value.

Implementation

bool get hasData => data != null;