enabled property

bool enabled

Whether the badge is enabled or disabled.

Implementation

bool get enabled => onPressed != null;