How to create a static Extension method in Dart

Posted by Rohit Kumar | Updated on

If you want to create a static Extension method in Dart As of now January 2020, Dart 2.7 officially introduced extension methods. To extend a class, this can be done:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers