call method

T call([
  1. T? val
])
override

Gets and/or sets to value like a function This method doesn't allow setting its value to null. If you need to set null as value, use .value = null.

Implementation

T call([T? val]) {
  assert(!_isDisposed, "You can call when it's been disposed");

  if (val != null) value = val;

  return value;
}