value property

  1. @override
dynamic get value
override

Implementation

@override
dynamic get value {
  if (lateFinalize && !_isInitialized) {
    throw HTError.uninitialized(id!);
  }
  if (!isExternal) {
    if (_value == null && (definitionIp != null)) {
      initialize();
    }
    return _value;
  } else {
    final externalClass = interpreter.fetchExternalClass(classId!);
    final value = externalClass.memberGet(id!);
    return value;
  }
}
  1. @override
set value (dynamic value)
override

Assign a new value to this variable.

Implementation

@override
set value(dynamic value) {
  if (!isMutable && _isInitialized) {
    throw HTError.immutable(id!);
  }
  _value = value;
  _isInitialized = true;
}