🐛 Fixes and optimzation on post

♻️ Replace freezed abstract classes with sealed
This commit is contained in:
2025-05-24 22:38:07 +08:00
parent 81103ba8b6
commit a2053aa772
19 changed files with 315 additions and 134 deletions

View File

@ -6,7 +6,7 @@ part 'file.g.dart';
enum UniversalFileType { image, video, audio, file }
@freezed
abstract class UniversalFile with _$UniversalFile {
sealed class UniversalFile with _$UniversalFile {
const UniversalFile._();
const factory UniversalFile({
@ -31,7 +31,7 @@ abstract class UniversalFile with _$UniversalFile {
}
@freezed
abstract class SnCloudFile with _$SnCloudFile {
sealed class SnCloudFile with _$SnCloudFile {
const factory SnCloudFile({
required String id,
required String name,