BoundsChecker class
Range checking for arrays
Constructors
- BoundsChecker.new(int _length, {String debugName = 'Unnamed'})
-
Constructs a BoundsChecker for the given length.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
check(
int index) → void - Checks if the given index is within bounds and throws an error if not.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited