setAttribute method

void setAttribute(
  1. String key,
  2. dynamic value
)

Sets a custom attribute

Implementation

void setAttribute(String key, dynamic value) =>
    _params.setAttribute(key, value);