duplicate method

Iterable<T> duplicate(
  1. int count
)

Returns an iterable that yields this card count times.

Implementation

Iterable<T> duplicate(int count) sync* {
  for (var i = 0; i < count; i++) {
    yield this;
  }
}