🎨 Fix most of linting notes

This commit is contained in:
2024-12-26 23:01:00 +08:00
parent 7656c08832
commit ee7d0ddd25
21 changed files with 100 additions and 97 deletions

View File

@ -217,15 +217,17 @@ class SnAttachmentProvider {
}
Future<SnAttachment> updateOne(
int id,
String alt, {
required Map<String, dynamic> metadata,
bool isMature = false,
int id, {
String? alt,
String? thumbnail,
Map<String, dynamic>? metadata,
bool? isIndexable,
}) async {
final resp = await _sn.client.put('/cgi/uc/attachments/$id', data: {
'alt': alt,
'thumbnail': thumbnail,
'metadata': metadata,
'is_mature': isMature,
'is_indexable': isIndexable,
});
return SnAttachment.fromJson(resp.data);
}