hasData property

bool hasData

checks whether data is available

Implementation

bool get hasData => data != null;