dart getter setter example
Example: dart getter
int get age => 21;
void set age(int currentYear) =>
vehicleAge = currentYear - manufactureYear;
int get age => 21;
void set age(int currentYear) =>
vehicleAge = currentYear - manufactureYear;