hasStepRegistered method

bool hasStepRegistered(
  1. Enum step
)

Implementation

bool hasStepRegistered(Enum step) {
  __.in_('hasStepRegistered');
  try {
    // Type safety: only check if step is of the flow's step enum type
    if (step is S) {
      return pageRegistry.containsKey(step);
    }
    return false;
  } catch (e, stackTrace) {
    __.severe(
      'Error checking step registration: ${step.toString()}',
      e,
      stackTrace,
    );
    return false;
  } finally {
    __.out_('hasStepRegistered');
  }
}