MutableListChildren

@ObjCName(name = "MutableListChildren", exact = true)
class MutableListChildren<W : Any>(list: MutableList<Widget<W>> = mutableListOf(), modifierUpdated: () -> Unit = {}) : Widget.Children<W> , MutableList<Widget<W>>

A MutableList that is also a Widget.Children.

Parameters

list

Optional existing MutableList instance to wrap.

Constructors

Link copied to clipboard
constructor(list: MutableList<Widget<W>> = mutableListOf(), modifierUpdated: () -> Unit = {})

Properties

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard
open override fun add(element: Widget<W>): Boolean
open override fun add(index: Int, element: Widget<W>)
Link copied to clipboard
open override fun addAll(elements: Collection<Widget<W>>): Boolean
open override fun addAll(index: Int, elements: Collection<Widget<W>>): Boolean
Link copied to clipboard
open override fun clear()
Link copied to clipboard
open operator override fun contains(element: Widget<W>): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<Widget<W>>): Boolean
Link copied to clipboard
open operator override fun get(index: Int): Widget<W>
Link copied to clipboard
open override fun indexOf(element: Widget<W>): Int
Link copied to clipboard
open override fun insert(index: Int, widget: Widget<W>)

Insert child widget at index.

Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): MutableIterator<Widget<W>>
Link copied to clipboard
open override fun lastIndexOf(element: Widget<W>): Int
Link copied to clipboard
open override fun listIterator(): MutableListIterator<Widget<W>>
open override fun listIterator(index: Int): MutableListIterator<Widget<W>>
Link copied to clipboard
open override fun move(fromIndex: Int, toIndex: Int, count: Int)

Move count child widgets from fromIndex to toIndex.

Link copied to clipboard
open override fun onModifierUpdated()

Indicates that Modifiers for the child widgets have changed.

Link copied to clipboard
open override fun remove(index: Int, count: Int)

Remove count child widgets starting from index.

open override fun remove(element: Widget<W>): Boolean
Link copied to clipboard
open override fun removeAll(elements: Collection<Widget<W>>): Boolean
Link copied to clipboard
open override fun removeAt(index: Int): Widget<W>
Link copied to clipboard
open override fun retainAll(elements: Collection<Widget<W>>): Boolean
Link copied to clipboard
open operator override fun set(index: Int, element: Widget<W>): Widget<W>
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): MutableList<Widget<W>>