showFAQ static method
void
showFAQ({})
Displays the FAQ Categories Page (Category List Activity) from where users can view and search FAQs
Implementation
static void showFAQ(
{String? faqTitle,
String? contactUsTitle,
List<String>? faqTags,
List<String>? contactUsTags,
required FaqFilterType faqFilterType,
bool showContactUsOnFaqScreens = true,
bool showFaqCategoriesAsGrid = true,
bool showContactUsOnAppBar = false,
bool showContactUsOnFaqNotHelpful = true}) async {
if (faqTitle == null &&
contactUsTitle == null &&
faqTags == null &&
contactUsTags == null) {
await _channel.invokeMethod('showFAQ');
} else {
await _channel.invokeMethod(
'showFAQsWithOptions',
<String, dynamic>{
'faqTitle': faqTitle,
'contactUsTitle': contactUsTitle,
'faqTags': faqTags,
'contactUsTags': contactUsTags,
'faqFilterType': faqFilterType.toShortString(),
'showContactUsOnFaqScreens': showContactUsOnFaqScreens,
'showFaqCategoriesAsGrid': showFaqCategoriesAsGrid,
'showContactUsOnAppBar': showContactUsOnAppBar,
'showContactUsOnFaqNotHelpful': showContactUsOnFaqNotHelpful
},
);
}
}