enabled property

bool get enabled

Whether the badge is enabled or disabled.

Implementation

bool get enabled => onPressed != null;