CustomPrompt constructor

CustomPrompt({
  1. Icon? icon,
  2. required BuildContext context,
  3. required Type type,
  4. int animDuration = 500,
  5. bool transparent = false,
  6. Color? color,
  7. String? title,
  8. Text? btnOneText,
  9. Text? btnTwoText,
  10. Color? btnOneColor,
  11. Color? btnTwoColor,
  12. String? inputHint = 'Enter your email...',
  13. String? content,
  14. Curve curve = Curves.bounceOut,
  15. String? okayBtnText,
  16. String? cancelBtnText,
  17. Function? btnOneOnClick,
  18. Function? btnTwoOnClick,
})

{@tool snippet} Typically, custom_prompt will be used, as follows:

CustomPrompt(

{@end-tool}

The color defaults to white. The animDuration is animation time in milliseconds, defaults to 500.

Implementation

//      animDuration: 500,
//      title: 'Error',
//      type: 'error',
//      curve: Curves.easeInCubic,
//      context: context,
//      color: primary,
//      content: 'An error occurred!',
//      onOkay: logOut,
//      onCancel: canceled
//  ).alert();
/// ```
/// {@end-tool}
///
/// The [color] defaults to white.
/// The [animDuration] is animation time in milliseconds, defaults to 500.

CustomPrompt({
  this.icon,
  required this.context,
  required this.type,
  this.animDuration = 500,
  this.transparent = false,
  this.color,
  this.title,
  this.btnOneText,
  this.btnTwoText,
  this.btnOneColor,
  this.btnTwoColor,
  this.inputHint = 'Enter your email...',
  this.content,
  this.curve = Curves.bounceOut,
  this.okayBtnText,
  this.cancelBtnText,
  this.btnOneOnClick,
  this.btnTwoOnClick,
});