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<int> get examplesWithoutValidation {
final min = this.min;
final max = this.max;
return [
0,
1,
-1,
maxWhenBits(bits, isUnsigned: isUnsigned),
minWhenBits(bits, isUnsigned: isUnsigned),
if (min != null) ...[
min - 1,
min,
min + 1,
],
if (max != null) ...[
max - 1,
max,
max + 1,
],
];
}