hasSelection property

bool get hasSelection

检查是否有选中的图层

Implementation

bool get hasSelection => _selectedLayerId != null;