Alert constructor
Alert({
- required BuildContext context,
- String? id,
- AlertType? type,
- AlertStyle style = const AlertStyle(),
- EdgeInsets? padding,
- Widget? image,
- String? title,
- String? desc,
- Widget content = const SizedBox(),
- List<
DialogButton> ? buttons, - Function? closeFunction,
- Widget? closeIcon,
- bool onWillPopActive = false,
- AlertAnimation? alertAnimation,
Alert constructor
context is required.
Implementation
Alert({
required this.context,
this.id,
this.type,
this.style = const AlertStyle(),
this.padding,
this.image,
this.title,
this.desc,
this.content = const SizedBox(),
this.buttons,
this.closeFunction,
this.closeIcon,
this.onWillPopActive = false,
this.alertAnimation,
this.useRootNavigator = true,
});