RxList<E> constructor

RxList<E>([
  1. List<E> initial = const <Never>[]
])

Constructs an RxList.

Optionally, an initial list can be provided.

Implementation

RxList([List<E> initial = const <Never>[]])
    : super(initial.isNotEmpty ? initial : List<E>.empty(growable: true));