Ref<T>.of constructor

Ref<T>.of(
  1. T raw
)

Implementation

Ref.of(T raw) {
  this._getter = () => raw;
  this._setter =
      (T value) => throw UnsupportedError('unsupported setter call');
}