CPBarButton constructor

CPBarButton({
  1. required String title,
  2. CPBarButtonStyles style = CPBarButtonStyles.rounded,
  3. required dynamic onPress(),
})

Creates CPBarButton with a title, style and handler.

Implementation

CPBarButton({
  required this.title,
  this.style = CPBarButtonStyles.rounded,
  required this.onPress,
});