CPTextButton constructor

CPTextButton({
  1. required String title,
  2. CPTextButtonStyles style = CPTextButtonStyles.normal,
  3. required dynamic onPress(),
})

Creates CPTextButton with a title, style and handler.

Implementation

CPTextButton({
  required this.title,
  this.style = CPTextButtonStyles.normal,
  required this.onPress,
});