Skip to content

Commit

Permalink
Address a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
iinozemtsev authored and davidmorgan committed Sep 12, 2024
1 parent 4384153 commit 560883b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/set/set_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class SetBuilder<E> {
_BuiltSet<E>? _setOwner;

/// Instantiates with elements from an [Iterable<E>].
factory SetBuilder.of(Iterable<E> iterable) => SetBuilder<E>(iterable);
factory SetBuilder.of(Iterable<E> iterable) {
return SetBuilder<E>._uninitialized().._replaceOf(iterable);
}

/// Instantiates with elements from an [Iterable].
factory SetBuilder([Iterable iterable = const []]) {
Expand Down

0 comments on commit 560883b

Please sign in to comment.