putAttribute method

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

Implementation

void putAttribute(String key, dynamic value) {
  try {
    Map<String, dynamic> args = {key: value};
    _channel.invokeMethod('putAttributes', args);
  } on Exception catch (e) {
    Logger.i("$e Error in putAttribute");
  }
}