call method

T call([
  1. T? val
])

Gets and/or sets to value like a function

Implementation

T call([T? val]) {
  if (null is T || val != null) {
    value = val as T;
  }

  return value;
}