isNotEmpty function

bool isNotEmpty(
  1. dynamic element
)

Implementation

bool isNotEmpty(dynamic element) => !((element is String || element is List || element is Map) && element.isEmpty);