hasData property

bool hasData

Check if the AsyncSnapshot has data.

Implementation

bool get hasData =>
    connectionState == ConnectionState.active ||
    connectionState == ConnectionState.done && data != null;