SafeListAccessor class

A wrapper class that provides safe access to list elements using [] operator Returns null instead of throwing exception for invalid indices

Constructors

SafeListAccessor(List _list)

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

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
operator [](int index) → dynamic
Safely access element at index, returns null if index doesn't exist