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');
  }
}