call method

T call([
  1. T? value
])

Convenient short-hand variant allowing for both setting and getting.

Get: value = mutableValue() Set: mutableValue(value)

Implementation

T call([T? value]) {
  if (value != null) this.value = value;
  return this.value;
}