repeat method

SeatsBuilder repeat(
  1. int count, {
  2. String? key,
})

Implementation

SeatsBuilder repeat(int count, {String? key}) {
  _validateCount(count, 'count');
  if (key != null) {
    final recorded = _namedRecordings[key];
    if (recorded == null) {
      throw StateError('No recording exists for key "$key"');
    }
    _addRepeatedActions(recorded, count);
    return this;
  }
  final recorded = _closeRecording('repeat() requires an open record() block');
  _addRepeatedActions(recorded, count);
  return this;
}