startShowCase method

void startShowCase(
  1. List<GlobalKey<State<StatefulWidget>>> widgetIds
)

Starts Showcase view from the beginning of specified list of widget ids. If this function is used when showcase has been disabled then it will throw an exception.

Implementation

void startShowCase(List<GlobalKey> widgetIds) {
  if (!enableShowcase) {
    throw Exception(
      "You are trying to start Showcase while it has been disabled with "
      "`enableShowcase` parameter to false from ShowCaseWidget",
    );
  }
  if (!mounted) return;
  setState(() {
    ids = widgetIds;
    activeWidgetId = 0;
    _onStart();
  });
}