description

# dataset property

Map<String, String> get dataset

Allows access to all custom data attributes (data-*) set on this element.

Any data attributes in the markup will be converted to camel-cased keys in the map based on these conversion rules.

For example, HTML specified as:

    <div data-my-random-value='value'></div>

Would be accessed in Dart as:

    var value = element.dataset['myRandomValue'];

See also:

- HTML data-* attributes naming restrictions
- Custom data attributes

## Implementation

    Map<String, String> get dataset => new _DataAttributeMap(attributes);

set dataset (Map<String, String> value)

## Implementation

    set dataset(Map<String, String> value) {
      final data = this.dataset;
      data.clear();
      for (String key in value.keys) {
        data[key] = value[key]!;
      }
    }