VAlert constructor
VAlert({
- required BuildContext context,
- String? id,
- VAlertConfig style = const VAlertConfig(),
- EdgeInsets? padding,
- String? title,
- String? desc,
- Widget content = const SizedBox(),
- List<
Widget> ? buttons, - Function? closeFunction,
- Widget? closeIcon,
- bool onWillPopActive = true,
- AlertAnimation? alertAnimation,
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,
});