currentFeatureIdOf static method

String? currentFeatureIdOf(
  1. BuildContext context
)

This returns the feature id of the current feature discovery step, i.e. of the DescribedFeatureOverlay that is currently supposed to be shown, or null.

Note that this will also return the feature id of the current step of the steps you passed to discoverFeatures even when there is no DescribedFeatureOverlay in the tree to display the overlay. This means that you cannot use this to check if a feature overlay is being displayed.

Implementation

static String? currentFeatureIdOf(BuildContext context) =>
    _blocOf(context).activeFeatureId;