set method

User set(
  1. dynamic data
)

Adds a unique data object to a node.

Implementation

User set(dynamic data) {
  if (data is Map) {
    data = dartToJs(data);
  }
  final user = _user.set(data);
  return User._(user);
}