init method
dynamic
init({
- Future<
bool?> confirmDialog({- required BuildContext context,
- required String message,
- required String? title,
- Future<
bool?> errorDialog({- required BuildContext context,
- required String message,
- required String? title,
- Future<
void> alertDialog({- required BuildContext context,
- required String message,
- required String? title,
- Future<
String?> inputDialog({})?,
Implementation
init({
// String? cloudFunctionRegion,
// Color? toastBackgroundColor,
// Color? toastForegroundColor,
// BuildContext Function()? globalContext,
Future<bool?> Function({
required BuildContext context,
required String? title,
required String message,
})? confirmDialog,
Future<bool?> Function({
required BuildContext context,
required String? title,
required String message,
})? errorDialog,
Future<void> Function({
required BuildContext context,
required String? title,
required String message,
})? alertDialog,
Future<String?> Function({
required BuildContext context,
required String title,
required String? subtitle,
required String hintText,
required String? initialValue,
required int? minLines,
required int? maxLines,
})? inputDialog,
}) {
// _globalContext = globalContext;
this.confirmDialog = confirmDialog;
this.errorDialog = errorDialog;
this.alertDialog = alertDialog;
this.inputDialog = inputDialog;
}