VAlert constructor

VAlert({
  1. required BuildContext context,
  2. String? id,
  3. VAlertConfig style = const VAlertConfig(),
  4. EdgeInsets? padding,
  5. String? title,
  6. String? desc,
  7. Widget content = const SizedBox(),
  8. List<Widget>? buttons,
  9. Function? closeFunction,
  10. Widget? closeIcon,
  11. bool onWillPopActive = true,
  12. AlertAnimation? alertAnimation,
  13. bool useRootNavigator = true,
})

Implementation

VAlert({
  required this.context,
  this.id,
  this.style = const VAlertConfig(),
  this.padding,
  // this.image,
  this.title,
  this.desc,
  this.content = const SizedBox(),
  this.buttons,
  this.closeFunction,
  this.closeIcon,
  this.onWillPopActive = true,
  this.alertAnimation,
  this.useRootNavigator = true,
});