isEmpty property

bool get isEmpty

Whether both range endpoints are null or blank.

Implementation

bool get isEmpty =>
    (from == null || from.toString().trim().isEmpty) &&
    (to == null || to.toString().trim().isEmpty);