# setProperty abstract method

void setProperty(

1. String key,
2. dynamic value

)

Stores a property under the given `key` with a `value`.

Useful for storing contextual metadata such as user roles, environments, or tenant identifiers.

### Example:

    domain.setProperty('env', 'production');
    domain.setProperty('tenantId', 12345);

## Implementation

    void setProperty(String key, dynamic value);