index property Null safety

int? index

The index of the child to show, null if nothing is to be displayed.

Implementation

int? get index => _index;
void index=(int? value)

Implementation

set index(int? value) {
  if (_index != value) {
    _index = value;
    markNeedsLayout();
  }
}