hasData property

bool get hasData

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

Implementation

bool get hasData => data != null;