of static method

Implementation

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