Flutter Firebase & DDD Course [14] - Data Transfer Objects

preview_player
Показать описание
📗 Get the code 👇👇

📧 Get Flutter news 📰 and resources:

👨‍💻 Do you write good code? Find out now!

The notes domain layer is almost finished. We have all the value objects and entities we need. In this part, we're going to create the repository interface and also prepare the data transfer objects of the infrastructure layer.

Go to my website for more information, code examples, and articles:

Follow me on social media:
Рекомендации по теме
Комментарии
Автор

Bro you are creating a solid foundation for the upcoming flutter developers.
I hope this kind of clean coding style becomes a standard for the flutter developers.
I see so many tutorials where people use a bad approach just to make their videos simpler and people learn those bad practices.

vaibhavdangayachvd
Автор

A lot of what I know about Flutter now is because of your tutorials. Thank you so much. ❤🌹

hoxorious
Автор

User snippet for "From Json Factory"

"From Json factory": {
"prefix": "fromJson",
"body": [
"factory ${1}.fromJson(Map<String, dynamic> json) => _$${1}FromJson(json);"
],
"description": "From Json factory"
},

pasindunirmal
Автор

Can looks like overkill, but only with this kind of architecture approach an real app can real scalable! Thanks and "Stay Hungry Stay Foolish!".

dev
Автор

I need to improve my basic skills to be confident while listening to you ▪︎

resultanyldz
Автор

Love Reso Coder !
Reso for the President !

akn
Автор

you're a great teacher. big up bro

mohamedleminemaouloud
Автор

what is the different between facade and repository?

rakaalrian
Автор

Thank you @resocoder, I'm always waiting your videos to see if I did it right!

Piyeycorp
Автор

Thank you very much for providing such a valuable content.

pedrodelacruz
Автор

An amazing tutorial again, Thank you resocoder, learning so much thanks to you!
I have a question about the serverTimeStamp FieldValue though, if one day you decide to migrate to postgres, like you explained for the ID, wouldn't it be better to store directly the DateTime (by converting it to firestore Timestamp) instead of using the serverTimeStamp fieldValue as there is no such thing in Postgres? If you don't do that, then you won't have any DateTime value and you won't be able to sort the result by DateTime, right?

supersciencounet
Автор

I'm using cloud_firestore version: ^2.2.1, and at 44:16 I can't implement doc.data. Instead it suggests doc.data() to me, but the following error appears: "The argument type 'Object?' can't be assigned to the parameter type 'Map<String, dynamic>'". Can anybody help me?

adriano_souza
Автор

Quick tip to avoid getting warnings in the linter, add the following to analysis_options.yaml:
analyzer:
exclude:
- "*g.dart"
- "*.freezed.dart"
- "lib/**/*.g.dart"
- "lib/**/*.freezed.dart"

MrPB
Автор

hi, thank you for such a great tutorial. I got a question, it seems in the new firestore package, it's using doc.data() and it's nullable, so if I use NoteDto.fromFirestore, it has to handle such nullable value, either return null or maybe an "empty" NoteDto or throw. Which one do you think it's better.

realThinkingPoker
Автор

it seems that there an issue with the lastest versions of cloud_firestore and json_serializable. can someone post its note_dtos.dart code in the comment section please ?

sinaardehali
Автор

How to implement .fromFirestore factory for Realtime Database instead of Firestore? Any help!

shashikantsinghal
Автор

Since @required replaced to required. how do i add the @ServerTimeStampConverter()?

hanafihisyam
Автор

What if I'm working with Images instead of Notes? What's the best practice? Should I keep an Image object in the ValueObject or an URL String to the image is enough?

DanielSanchezV
Автор

It not work this code at this time "
factory doc) {
return doc.id);
}
".I think that is why NoteDto.fromJson require Map<String, dynamic>, but DocumentSnapshot is Object?.How can I fix this code to work?.Help me

truelife
Автор

Hello, thank you @resocoder, have you tested an ORM for sqlite database with flutter?

siniliote