Dart: Getter & Setter
It is used to retrieve a particular class field and save it in a variable. All classes have a default getter method but we can also create getter method as well. The getter method can be defined using the get keyword as:
return_type get field_name{...