Alert constructor
Alert({
- required BuildContext context,
- String? id,
- Types? type,
- AlertStyle style = const AlertStyle(),
- Widget? image,
- String? title,
- String? desc,
- Widget? content,
- List<
Widget> ? buttons, - Function? closeFunction,
- Icon? closeIcon,
- bool onWillPopActive = false,
- AlertAnimation? alertAnimation,
Alert constructor
context, title are required.
Implementation
Alert({
required this.context,
this.id,
this.type,
this.style = const AlertStyle(),
this.image,
this.title,
this.desc,
this.content,
this.buttons,
this.closeFunction,
this.closeIcon,
this.onWillPopActive = false,
this.alertAnimation,
});