Model constructor
const
Model({
- required int id,
- required String name,
- String? description,
- required ModelType type,
- required bool nsfw,
- required bool poi,
- String? mode,
- CreatorInfo? creator,
- required List<
String> tags, - required List<
ModelVersion> modelVersions, - ModelStats? stats,
- String? imageUrl,
- DateTime? createdAt,
- DateTime? updatedAt,
- DateTime? publishedAt,
- ModelStatus? status,
- bool? earlyAccessEnabled,
- String? downloadUrl,
Creates a new model instance.
Implementation
const Model({
required this.id,
required this.name,
this.description,
required this.type,
required this.nsfw,
required this.poi,
this.mode,
this.creator,
required this.tags,
required this.modelVersions,
this.stats,
this.imageUrl,
this.createdAt,
this.updatedAt,
this.publishedAt,
this.status,
this.earlyAccessEnabled,
this.downloadUrl,
});