Course lesson

Add New Methods to inbuilt Classes and Interfaces with Extension Methods in Dart

Extension methods allow you to add new methods to classes without directly changing its original interface or creating a derived class. We will explore examples of working with this feature by extending some inbuilt types.

Duration
3 min
Access
Free
Transcript
Needs source

Extension methods allow you to add new methods to classes without directly changing its original interface or creating a derived class. We will explore examples of working with this feature by extending some inbuilt types.

Learn more about Extension Methods at https://medium.com/dartlang/extension-methods-2d466cd8b308