
## Margin class

Specifies the margin.

```js
new Margin(value, unit)
```

Constructor.

## Methods

| Name | Description |
| --- | --- |
| [equals(value)](#equals) | Are objects equal. |
| [getUnit()](#getunit) | Represents a unit of measure. The default is DP. The value of the property is MeasureConst integer constant. |
| [getValue()](#getvalue) | Specifies the margin. |
| [hashCode()](#hashcode) | Serves as a hash function for a particular type. |
| [setUnit()](#setunit) | Represents a unit of measure. The default is DP. The value of the property is MeasureConst integer constant. |
| [setValue()](#setvalue) | Specifies the margin. |

### equals(value) {#equals}

Are objects equal.

| Parameter | Type | Description |
| --- | --- | --- |
| value | Object |  |

**Returns:** boolean — `boolean`

### getUnit() {#getunit}

Represents a unit of measure. The default is DP. The value of the property is MeasureConst integer constant.

### getValue() {#getvalue}

Specifies the margin.

### hashCode() {#hashcode}

Serves as a hash function for a particular type.

**Returns:** Number — `Number`

### setUnit() {#setunit}

Represents a unit of measure. The default is DP. The value of the property is MeasureConst integer constant.

### setValue() {#setvalue}

Specifies the margin.
