Quiz Yourself on Extensions
Check your understanding of Dart extensions in this lesson.
We'll cover the following...
We'll cover the following...
Technical Quiz
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.
C.
Write an extension method on the core String
class to append the desired suffix.
1 / 3