searchProfiles method
- String query
Implementation
Future<Either<ApiError, List<Profile>>> searchProfiles(String query) => get(
"$_profileRoutesPrefix?username=$query",
(json) {
if (json is List) {
return json.map((e) => Profile.fromJson(e)).toList();
} else {
throw Exception("Invalid response format");
}
},
);