hasSubcategories property

bool get hasSubcategories

True when this category contains one or more subcategories.

Implementation

bool get hasSubcategories => subcategories.isNotEmpty;