updated project style guidelines

This commit is contained in:
2024-04-03 19:18:17 +02:00
parent 27618f4404
commit 4c7f53e309
185 changed files with 505 additions and 873 deletions

View File

@ -10,12 +10,8 @@ class GetMessages extends MhslApi<GetMessagesResponse> {
@override
GetMessagesResponse assemble(String raw) {
return GetMessagesResponse.fromJson(jsonDecode(raw));
}
GetMessagesResponse assemble(String raw) => GetMessagesResponse.fromJson(jsonDecode(raw));
@override
Future<http.Response> request(Uri uri) {
return http.get(uri);
}
}
Future<http.Response> request(Uri uri) => http.get(uri);
}

View File

@ -10,12 +10,8 @@ class GetMessagesCache extends RequestCache<GetMessagesResponse> {
}
@override
GetMessagesResponse onLocalData(String json) {
return GetMessagesResponse.fromJson(jsonDecode(json));
}
GetMessagesResponse onLocalData(String json) => GetMessagesResponse.fromJson(jsonDecode(json));
@override
Future<GetMessagesResponse> onLoad() {
return GetMessages().run();
}
}
Future<GetMessagesResponse> onLoad() => GetMessages().run();
}