set method

Gun set(
  1. dynamic data
)

Adds a unique data to a node.

Implementation

Gun set(dynamic data) {
  if (data is Map) {
    data = dartToJs(data);
  }
  final gun = _gun.set(data);
  return Gun._(gun);
}