call method

T? call([
  1. T? v
])

Updates the value if a new value is provided, otherwise returns the current value.

Implementation

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