Dart Documentationorson_chartsKeyedValues<T>

KeyedValues<T> abstract class

An interface for an ordered list of (key, value) pairs. A default implementation is provided by the DefaultKeyedValues class.

Extends

Values<T> > KeyedValues<T>

Subclasses

DefaultKeyedValues<T>, PieDataset

Properties

final int itemCount #

inherited from Values

Returns the number of items.

final List<Comparable> keys #

Returns a new list containing all the keys in the list.

Methods

abstract int getIndex(Comparable key) #

Returns the index for the specified key, or -1.

abstract Comparable getKey(int index) #

Returns the key for the item with the specified index.

abstract T getValue(Comparable key) #

Returns the value with the specified key.

abstract T getValueByIndex(int index) #

inherited from Values

Returns the value for the item with the specified index.