SeoActionFormRegistration.contextualFlow constructor
SeoActionFormRegistration.contextualFlow({
- required SeoActionFlowDefinition definition,
- required SeoActionFormContextCodec contextCodec,
- required SeoActionFormContextHandler handler,
- SeoActionFormServerMessages messages = const SeoActionFormServerMessages(),
- String lang = 'en',
- 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,
);
}