Skip to content

cant get some wilaya when using searchWilayatByName function #4

@Hichemhino

Description

@Hichemhino

Im trying to get some wilaya based on pattern but its not working, there is the code snippet :
`List getWilayaSuggestionUsingPattern(
String pattern,
) {
if(pattern.isEmpty){
return [];
}
final wilayas = dzair.searchWilayatByName(pattern, language) ?? [];

List<String> wilayasSuggestion = [];

wilayasSuggestion.addAll(
  wilayas.map((e) => e!.getWilayaName(language)!)
);

return wilayasSuggestion;

}`
for example if i enter "chent" to get "Ain-Temouchent" => i get nothing both in arabic and english.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions