Variable

Implements a variable holder object.

Implements: IVariable

Description

The Variable class allows you to implement a variable holder object.

Constructors

Variable(String name, [Variant? value])

  • name: String - name of this variable.
  • value: Variant? - value of this variable.

Properties

name

Gets the name of the variable @override

String get name

  • returns: String - variable name.

Sets the name of the variable

@override

set name(String value)

  • value: String - variable name.

value

Gets the variable’s value.

Variant get value

  • returns: Variant - variable’s value.

Sets the variable’s value.

set value(Variant value)

  • value: Variant - variable’s value.