ViewModelInstanceList class abstract interface

A Rive view model property of type List<ViewModelInstance> that represents a list of view model instances.

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
Returns the number of view model instances in the list.
no setter
rootViewModelInstance ViewModelInstance
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(ViewModelInstance instance) → void
Adds a ViewModelInstance to the end of the list.
dispose() → void
inherited
first() ViewModelInstance
Returns the first view model instance in the list.
firstOrNull() ViewModelInstance?
Returns the first view model instance in the list, or null if the list is empty.
insert(int index, ViewModelInstance instance) bool
Inserts a ViewModelInstance at the specified index in the list.
instanceAt(int index) ViewModelInstance
Returns the view model instance at the specified index in the list.
last() ViewModelInstance
Returns the last view model instance in the list.
lastOrNull() ViewModelInstance?
Returns the last view model instance in the list, or null if the list is empty.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(ViewModelInstance instance) → void
Removes the specified ViewModelInstance from the list.
removeAt(int index) → void
Removes the view model instance at the specified index from the list.
swap(int a, int b) → void
Swaps the positions of two view model instances in the list at indices a and b.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int index) ViewModelInstance
Returns the view model instance at the specified index in the list.
operator []=(int index, ViewModelInstance value) → void
Sets the view model instance at the specified index in the list to value.