Created
September 18, 2025 05:46
-
-
Save d1y/530aaffb15eed48da25340da2453b2fb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enum SourceType { | |
| maccms, // 0 | |
| universal, // | |
| // drpy, | |
| } | |
| class SourceMeta extends Equatable { | |
| final String id; | |
| final String name; | |
| final SourceType type; | |
| final String logo; | |
| final String desc; | |
| final String api; | |
| final bool isNsfw; | |
| final bool status; | |
| final Map<String, dynamic> extra; | |
| const SourceMeta({ | |
| required this.id, | |
| required this.name, | |
| required this.type, | |
| required this.api, | |
| this.status = true, | |
| this.isNsfw = false, | |
| this.logo = "", | |
| this.desc = "", | |
| this.extra = const {}, | |
| }); | |
| @override | |
| List<Object?> get props => [id, name, type, api, isNsfw]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment