start method
void
start(
[ - int? displayIndex
])
inherited
Implementation
void start([int? displayIndex]) {
_nextPlayIndex = 0;
_playableWidgets.sort((a, b) => a.displayIndex.compareTo(b.displayIndex));
if (displayIndex != null) {
_nextPlayIndex =
_playableWidgets.indexWhere((e) => e.displayIndex == displayIndex);
if (_nextPlayIndex.isNegative) _nextPlayIndex = 0;
}
if (playWidgetLength == 0) {
throw 'No overlay tooltip item has been '
'initialized, consider inserting controller.start() in a button '
'callback or using the startWhen method';
}
_widgetsPlayController.sink.add(_playableWidgets[_nextPlayIndex]);
}