onPressedDefault static method
void
onPressedDefault(
- BuildContext context,
- ButtonFlexibleDataGeneralFramework inlineKeyboardData
UncompleteDocumentation
Implementation
static void onPressedDefault(BuildContext context,
ButtonFlexibleDataGeneralFramework inlineKeyboardData) {
if (inlineKeyboardData.url.trim().isNotEmpty) {
context.showAlertGeneralFramework(
alertGeneralFrameworkOptions: AlertGeneralFrameworkOptions(
title: "Apakah anda yakin?",
onCancelPressed: (context, alertGeneralFrameworkOptions) {
launchUrlString(
inlineKeyboardData.url,
);
},
builder: (context, _) {
return "Open: ${inlineKeyboardData.url}".trim();
},
),
);
return;
}
if (inlineKeyboardData.callback_data.trim().isNotEmpty) {}
}