of static method

Implementation

static ShowcaseWidgetState of(BuildContext context) {
  final state = context.findAncestorStateOfType<ShowcaseWidgetState>();
  if (state != null) {
    return state;
  } else {
    throw Exception('Please provide ShowCaseView context');
  }
}