mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-10 07:50:28 -07:00
Init repo
This commit is contained in:
commit
764b6034e3
566 changed files with 212335 additions and 0 deletions
25
lib/models/recommended_model.dart
Normal file
25
lib/models/recommended_model.dart
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// ignore_for_file: public_member_api_docs, sort_constructors_first
|
||||
import 'package:fladder/models/item_base_model.dart';
|
||||
|
||||
class RecommendedModel {
|
||||
final String name;
|
||||
final List<ItemBaseModel> posters;
|
||||
final String type;
|
||||
RecommendedModel({
|
||||
required this.name,
|
||||
required this.posters,
|
||||
required this.type,
|
||||
});
|
||||
|
||||
RecommendedModel copyWith({
|
||||
String? name,
|
||||
List<ItemBaseModel>? posters,
|
||||
String? type,
|
||||
}) {
|
||||
return RecommendedModel(
|
||||
name: name ?? this.name,
|
||||
posters: posters ?? this.posters,
|
||||
type: type ?? this.type,
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue