hasData property

bool get hasData

Implementation

bool get hasData =>
    (data is List && (data as List).isNotEmpty) ||
    (data is! List && data != null);