What is getter in dart?

Getters and setters are the special class method that is used to read and write access to an object’s properties . The getter method is used to reads the value of the variable or retrieve the value and setter method is used to set or initialize respective class fields.

Read more