DeltaRangeError class

Error thrown due to an argument value being outside an accepted range.

Implemented types

Constructors

DeltaRangeError(dynamic invalidValue, String? name, dynamic message, num? start, num? end, bool _hasValue)
DeltaRangeError.range(num invalidValue, int? minValue, int? maxValue, [String? name, String? message])
Create a new DeltaRangeError for a value being outside the valid range.
factory
DeltaRangeError.value(num value, [String? name, String? message])
Create a new DeltaRangeError with a message for the given value. An optional name can specify the argument name that has the
factory

Properties

end num?
The maximum value that value is allowed to assume.
final
hashCode int
The hash code for this object.
no setterinherited
invalidValue → dynamic
The invalid value.
final
message → dynamic
Message describing the problem.
final
name String?
Name of the invalid argument, if available.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start num?
The minimum value that value is allowed to assume.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

checkNotNegative(int value, [String? name, String? message]) int
Check that an integer value is non-negative.
checkValidIndex(int index, dynamic indexable, [String? name, int? length, String? message]) int
Check that index is a valid index into an indexable object.
checkValidRange(int start, int? end, int length, [String? startName, String? endName, String? message]) int
Check that a range represents a slice of an indexable object.
checkValueInInterval(int value, int minValue, int maxValue, [String? name, String? message]) int
Check that an integer value lies in a specific interval.