Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Domain] Added an entity for the custom build notes
- Loading branch information
Showing
10 changed files
with
69 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
11 changes: 11 additions & 0 deletions
11
lib/domain/models/custom_builds/custom_build_note_model.dart
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
part 'custom_build_note_model.freezed.dart'; | ||
|
||
@freezed | ||
class CustomBuildNoteModel with _$CustomBuildNoteModel { | ||
const factory CustomBuildNoteModel({ | ||
required int index, | ||
required String note, | ||
}) = _CustomBuildNoteModel; | ||
} |
This file contains 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
This file contains 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
This file contains 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
17 changes: 17 additions & 0 deletions
17
lib/domain/models/entities/custom_builds/custom_build_note.dart
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import 'package:hive/hive.dart'; | ||
|
||
part 'custom_build_note.g.dart'; | ||
|
||
@HiveType(typeId: 20) | ||
class CustomBuildNote extends HiveObject { | ||
@HiveField(0) | ||
final int buildItemKey; | ||
|
||
@HiveField(1) | ||
int index; | ||
|
||
@HiveField(2) | ||
String note; | ||
|
||
CustomBuildNote(this.buildItemKey, this.index, this.note); | ||
} |
This file contains 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
This file contains 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