JuiModalConfirm constructor

const JuiModalConfirm({
  1. Key? key,
  2. required String title,
  3. Color? color,
  4. bool? showOptions,
  5. String? description,
  6. String? confirmLabel,
  7. String? dismissLabel,
})

Implementation

const JuiModalConfirm({
  Key? key,
  required this.title,
  this.color,
  this.showOptions,
  this.description,
  this.confirmLabel,
  this.dismissLabel,
})  : assert((showOptions == true && confirmLabel != null) || showOptions != true),
      assert(description == null || description != ""),
      assert(confirmLabel == null || confirmLabel != ""),
      assert(dismissLabel == null || dismissLabel != ""),
      super(key: key);