hasItem property

bool get hasItem

Returns true if item is not null, otherwise false.

Implementation

bool get hasItem => item != null;