CPAlertAction constructor

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

Creates CPAlertAction with a title, style, and action handler.

Implementation

CPAlertAction({
  required this.title,
  this.style = CPAlertActionStyles.normal,
  required this.onPress,
});