fix assert

This commit is contained in:
Christien Rioux 2024-02-16 09:32:25 -07:00
parent 2156449486
commit a281f09d82
2 changed files with 2 additions and 4 deletions

View file

@ -903,8 +903,7 @@ class __$$ValueSubkeyRangeImplCopyWithImpl<$Res>
@JsonSerializable()
class _$ValueSubkeyRangeImpl implements _ValueSubkeyRange {
const _$ValueSubkeyRangeImpl({required this.low, required this.high})
: assert(low < 0 || low > high, 'low out of range'),
assert(high < 0, 'high out of range');
: assert(low >= 0 && low <= high, 'range is invalid');
factory _$ValueSubkeyRangeImpl.fromJson(Map<String, dynamic> json) =>
_$$ValueSubkeyRangeImplFromJson(json);