locationPromptDialog function
Displays a location prompt dialog
Implementation
Future<void> locationPromptDialog(
{String? text,
String? yesText,
String? noText,
required bool isShareLocationData,
required bool isRequestLocationData,
bool onlyText = false,
LocationNotificationModel? locationNotificationModel}) {
var value = showDialog<void>(
context: AtLocationNotificationListener().navKey.currentContext!,
barrierDismissible: true,
builder: (BuildContext context) {
return LocationPrompt(
text: text,
yesText: yesText,
noText: noText,
onlyText: onlyText,
isShareLocationData: isShareLocationData,
isRequestLocationData: isRequestLocationData,
locationNotificationModel: locationNotificationModel);
},
);
return value;
}