updated project style guidelines
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user