Skip to content

Instantly share code, notes, and snippets.

@d1y
Created September 18, 2025 05:46
Show Gist options
  • Select an option

  • Save d1y/530aaffb15eed48da25340da2453b2fb to your computer and use it in GitHub Desktop.

Select an option

Save d1y/530aaffb15eed48da25340da2453b2fb to your computer and use it in GitHub Desktop.
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