Implemented PR notes by extracting widgets into their own classes.

This commit is contained in:
Faris Armoush
2025-06-23 09:24:53 +03:00
parent 41d4fbb555
commit 27349a6cc0
11 changed files with 271 additions and 207 deletions

View File

@ -28,10 +28,10 @@ class RemoteCommunitiesService implements CommunitiesService {
if (param.search.isNotEmpty && param.search != 'null')
'search': param.search,
},
expectedResponseModel: (json) {
final data = json as Map<String, dynamic>;
return CommunitiesPaginationModel.fromJson(data, CommunityModel.fromJson);
},
expectedResponseModel: (json) => CommunitiesPaginationModel.fromJson(
json as Map<String, dynamic>,
CommunityModel.fromJsonList,
),
);
return response;