SeoActionFormRegistration.contextualFlow constructor

SeoActionFormRegistration.contextualFlow({
  1. required SeoActionFlowDefinition definition,
  2. required SeoActionFormContextCodec contextCodec,
  3. required SeoActionFormContextHandler handler,
  4. SeoActionFormServerMessages messages = const SeoActionFormServerMessages(),
  5. String lang = 'en',
  6. SeoActionFormSuccessRedirect? successRedirect,
})

Registers a flow with active-branch validation and authenticated context.

Implementation

factory SeoActionFormRegistration.contextualFlow({
  required SeoActionFlowDefinition definition,
  required SeoActionFormContextCodec contextCodec,
  required SeoActionFormContextHandler handler,
  SeoActionFormServerMessages messages = const SeoActionFormServerMessages(),
  String lang = 'en',
  SeoActionFormSuccessRedirect? successRedirect,
}) {
  final flowPlan = _requireFlowPlan(definition);
  return SeoActionFormRegistration._(
    plan: flowPlan.form,
    flowPlan: flowPlan,
    handler: null,
    contextHandler: handler,
    contextCodec: contextCodec,
    messages: messages,
    lang: lang,
    successRedirect: successRedirect,
  );
}