recentSearches top-level property
Implementation
List<SearchSuggestion> recentSearches = <SearchSuggestion>[
SearchSuggestion(
name: helpCenter,
aliases: <String>[
'help',
'help center',
'center',
'need help',
'FAQS',
'faqs',
'FAQ',
'faq'
],
image: SvgPicture.asset(helpTabIconUrl, color: Colors.grey),
onTap: (BuildContext context) async {
triggerNavigationEvent(context: context, route: helpCenterPageRoute);
},
route: helpCenterPageRoute,
),
SearchSuggestion(
name: userProfile,
aliases: <String>[
'profile',
'prof',
'my profile',
'user profile',
'profile info',
'profile information'
],
image: SvgPicture.asset(patientsTabIconUrl, color: Colors.grey),
onTap: (BuildContext context) async {
triggerNavigationEvent(context: context, route: userProfileRoute);
},
route: userProfileRoute,
),
];