Skip to content
0:00 / 0:00

#dart#extensionmethods#flutter

Dart Extension Methods Tutorial (incl. Generic Extensions, Properties & Operators)

Reso Coder

114K subscribers • 26 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.

Intermediate. Assumes working knowledge.

12K views7 years ago2 recommendations

Programming languagesLanguage design and type systems

Reso Coder explains how to use Dart extension methods, including generic extensions, properties, and operators.

📗 Learn from the written tutorial 👇👇 resocoder.com/dart-extensions-tutorial 👨‍💻 Do you write good code? Find out now! resocoder.com/good-code-quiz Dart Extension Methods Tutorial (incl. Generic Extensions, Properties & Operators) Subscribe Dart 2.6 is just around the corner. In fact, it may as well be out already as you're reading this. Dart has lived through a revival linked with the popularity of Flutter and people responsible for bringing new features into this language can't seem to stop working! There is one big feature which we were asking for all along and now it's here - extension members. Let's put it this way - every single language which supports extensions benefits from them immensely. They allow you to get rid of utility classes littered with a bunch of static methods and turn them into a beautiful "work of art methods" instead. Go to my website for more information, code examples, and articles: ● resocoder.com Follow me on social media: ● instagram.com/resocoder ● facebook.com/resocoder ● twitter.com/resocoder

Why it's here

2 people recommend this

What people say. Recommended as a tutorial on Dart extensions to help write cleaner widget styling code.

u/ReinBentdalin r/FlutterDev • Recommends

…ice. # Maintaining I dont think maintaining the package could be a big problem. Most of the methods is applies directly on \Widget\ and is therefore accesible to all widgets which originates from this class. More specific style could be applies to for example the \Text\ widget like `fontWeight` and so on. Tutorial on Dart 2.6.0 extensions: [video Github: https://github.com/ReinBentdal/styled\_widget The package in its current state is just a proof of concept to showcase what is possible, but with a possible future.…

u/EngineerScientistin r/FlutterDev • Recommends

Dart Extension Methods Tutorial (incl. Generic Extensions, Properties & Operators)