Quiz Yourself on Extensions
Check your understanding of Dart extensions in this lesson.
1
Assume that you want to append a suffix ‘_project1’ to all strings in your project. What solution would you pick?
A)
Add a method in every class of the project that can append the suffix.
B)
Create a separate utility class and use static
functions to append the suffix.
Question 1 of 30 attempted
Get hands-on with 1400+ tech skills courses.