CustomPrompt constructor
CustomPrompt({
- Icon? icon,
- required BuildContext context,
- required Type type,
- int animDuration = 500,
- bool transparent = false,
- Color? color,
- String? title,
- Text? btnOneText,
- Text? btnTwoText,
- Color? btnOneColor,
- Color? btnTwoColor,
- String? inputHint = 'Enter your email...',
- String? content,
- Curve curve = Curves.bounceOut,
- String? okayBtnText,
- String? cancelBtnText,
- Function? btnOneOnClick,
- 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,
});