CArrayExtension extension

Provides helper methods for the CArray.

on

Methods

addListener(void listener()) → void
Adds an event listener so when changes are made via the CObjectExtension.set method.
copy() CArray
Creates a copy of the array.
get<T>(int index) → T
Provides the ability to extract a data element from the represented CArray at the given index.
parse(String data) bool
Attempts to parse the serialized string data and turn it into a CArray. Any data previously held by this object is cleared. False is returned if it could not parse the data.
removeListener(void listener()) → void
Removes an event listener from the CArray.
set<T>(int index, T value, {bool notify = false}) → void
Provides a method to set data elements on the CArray.
stringify() String?
Converts the JSON object to a string returning null if it cannot