hasData property

bool get hasData

Returns true if any parameter other than url is filled.

Implementation

bool get hasData =>
    ((title?.isNotEmpty ?? false) && title != 'null') ||
    ((desc?.isNotEmpty ?? false) && desc != 'null') ||
    ((image?.isNotEmpty ?? false) && image != 'null');