CPAlertTemplate constructor

CPAlertTemplate({
  1. required List<String> titleVariants,
  2. required List<CPAlertAction> actions,
  3. dynamic onPresent(
    1. bool completed
    )?,
  4. String? tabTitle,
  5. bool showsTabBadge = false,
  6. String? systemIcon,
  7. String? id,
})

Creates CPAlertTemplate

Implementation

CPAlertTemplate({
  required this.titleVariants,
  required this.actions,
  this.onPresent,
  super.tabTitle,
  super.showsTabBadge = false,
  super.systemIcon,
  String? id,
}) : _elementId = id ?? const Uuid().v4();