GlobalGetter constructor

GlobalGetter(
  1. Object? getter(), {
  2. void setter(
    1. Object? value
    )?,
})

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});