CPBarButton constructor
CPBarButton({
- required OnClickEvents onClickEvent,
- CPBarButtonStyles style = CPBarButtonStyles.rounded,
- bool isEnabled = true,
- String? image,
- String? title,
Creates CPBarButton
Implementation
CPBarButton({
required this.onClickEvent,
this.style = CPBarButtonStyles.rounded,
this.isEnabled = true,
this.image,
this.title,
}) : assert(
image != null || title != null,
"Properties [image] and [title] both can't be null at the same time.",
),
assert(
image == null || title == null,
"Properties [image] and [title] both can't be set at the same time.",
);