mirror of
https://gitlab.com/foxixus/neomovies_mobile.git
synced 2025-10-28 01:18:50 +05:00
Initial commit
This commit is contained in:
21
lib/data/models/movie_preview.dart
Normal file
21
lib/data/models/movie_preview.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
import 'package:hive/hive.dart';
|
||||
|
||||
part 'movie_preview.g.dart';
|
||||
|
||||
@HiveType(typeId: 1) // Use a new typeId to avoid conflicts with Movie
|
||||
class MoviePreview extends HiveObject {
|
||||
@HiveField(0)
|
||||
final String id;
|
||||
|
||||
@HiveField(1)
|
||||
final String title;
|
||||
|
||||
@HiveField(2)
|
||||
final String? posterPath;
|
||||
|
||||
MoviePreview({
|
||||
required this.id,
|
||||
required this.title,
|
||||
this.posterPath,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user