GlobalGetter constructor
Creates a new global getter wrapper.
getter The function that returns the current value.
setter Optional function to handle assignment. If null, assignment
will throw an error.
Implementation
GlobalGetter(this.getter, {this.setter});