examplesWithoutValidation property
Interesting examples of instances (may be valid or invalid).
Use examples to get valid examples.
Use examplesThatAreInvalid to get invalid examples.
Implementation
@override
Iterable<List<E>> get examplesWithoutValidation sync* {
final lengths = <int?>[
0,
1,
(length?.min ?? 0) - 1,
length?.min,
length?.max,
(length?.max ?? 0) + 1,
].whereType<int>().where((element) => element >= 0).toSet().toList()
..sort();
for (var length in lengths) {
final list = List<E>.generate(
length,
(i) => elementKind.newInstance(),
);
yield (list);
}
}