Answers for "why use private fields in dart"

0

why use private fields in dart

Public and Private Fields: Why? - You may NOT want other engineers to see all the properties in a class as this would be confusing and allow them to choose the wrong properties. This is especially true when you only want to expose / list getters and setters,and not the properties making up the shortcut getters and setters.
Posted by: Guest on February-26-2021

Browse Popular Code Answers by Language