Let’s Flutter
Object-Oriented Programming and How You Can Benefit as a Flutter-Dev
Making Your Life Easier in Flutter With OOP-Superpowers
It appears object-oriented programming is the Goliath of every David-Programmer. I would know because the book I read when I started coding dedicated one-fifth of the book’s pages to OOP. And everywhere were
‘stop’ and ‘caution’-signs.
It gives us a nice way to model our data after real-world objects. — Eric Windmill in ‘Flutter in Action’
OOP doesn’t have to be difficult. I found it rather easy to wrap my head around. Maybe it was because I adopted a specific thought pattern early on.
First of all, before we can dive deeper into a specific topic, we have to know what it is. I find a concept easier to grasp if I look at its benefits first.
What Are the Benefits of OOP in Flutter?
I have one word for you:
Reusability.
And after that? Godspeed.
All jokes aside, if you refactor your code (or build your code from the ground up, for that matter) with OOP in mind, you can make it highly reusable for future projects.