withLabels method

UserBuilder withLabels(
  1. List<UserLabel> labels
)

Implementation

UserBuilder withLabels(final List<UserLabel> labels) {
  _labels = labels
      .map((final label) => UserLabelMapping(userId: _id ?? 1, label: label))
      .toList();
  return this;
}