On this page
IndexError class
A specialized RangeError used when an index is not in the range 0..indexable.length-1.
Also contains the indexable object, its length at the time of the error, and the invalid index itself.
- Inheritance
 - 
    
- Object
 - Error
 - ArgumentError
 - IndexError
 
 - Implements
 
Constructors
- IndexError(int invalidValue, indexable, [ String name, String message, int length ])
 - 
    
Creates a new IndexError stating that
invalidValueis not a valid index intoindexable. 
Properties
- end → int
    read-only
 - indexable → dynamic 
    final
 - 
    
The indexable object that invalidValue was not a valid index into.
 - length → int
    final
 - 
    
The length of indexable at the time of the error.
 - start → int
    read-only
 - hashCode → int
    read-only, inherited
 - 
    
The hash code for this object.
 - invalidValue → dynamic 
    final, inherited
 - 
    
The invalid value.
 - message → dynamic 
    final, inherited
 - 
    
Message describing the problem.
 - name → String
    final, inherited
 - 
    
Name of the invalid argument, if available.
 - runtimeType → Type
    read-only, inherited
 - 
    
A representation of the runtime type of the object.
 - stackTrace → StackTrace
    read-only, inherited
 
Operators
- operator ==(
other) → bool inherited - 
    
The equality operator.
 
Methods
- noSuchMethod(
Invocation invocation) → dynamic inherited - 
    
Invoked when a non-existent method or property is accessed.
 - toString(
) → String inherited - 
    
Returns a string representation of this object.
 
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
 https://api.dartlang.org/stable/1.24.3/dart-core/IndexError-class.html