dart format

This commit is contained in:
2026-05-08 20:12:40 +02:00
parent 9e139b5704
commit 3b8da1d3d6
295 changed files with 6404 additions and 4161 deletions
@@ -8,17 +8,24 @@ import 'react_message_params.dart';
class ReactMessage extends TalkApi {
String chatToken;
int messageId;
ReactMessage({required this.chatToken, required this.messageId, required ReactMessageParams params}) : super('v1/reaction/$chatToken/$messageId', params);
ReactMessage({
required this.chatToken,
required this.messageId,
required ReactMessageParams params,
}) : super('v1/reaction/$chatToken/$messageId', params);
@override
Null assemble(String raw) => null;
@override
Future<Response>? request(Uri uri, ApiParams? body, Map<String, String>? headers) {
if(body is ReactMessageParams) {
Future<Response>? request(
Uri uri,
ApiParams? body,
Map<String, String>? headers,
) {
if (body is ReactMessageParams) {
return http.post(uri, headers: headers, body: body.toJson());
}
return null;
}
}