createSPI<TSPI extends AFStateProgrammingInterface<AFComponentState, AFBuildContext<AFFlexibleStateView, AFRouteParam> , AFFunctionalTheme> > static method
TSPI
createSPI<TSPI extends AFStateProgrammingInterface<AFComponentState, AFBuildContext<AFFlexibleStateView, AFRouteParam> , AFFunctionalTheme> >(
- AFConnectedUIConfig<
AFComponentState, AFFunctionalTheme, AFFlexibleStateView, AFRouteParam, AFStateProgrammingInterface< config,AFComponentState, AFBuildContext< >AFFlexibleStateView, AFRouteParam> , AFFunctionalTheme> - AFScreenID screenId,
- AFWidgetID wid, {
- required AFRouteParam? launchParam,
Implementation
static TSPI createSPI<TSPI extends AFStateProgrammingInterface>(AFConnectedUIConfig config, AFScreenID screenId, AFWidgetID wid, { required AFRouteParam? launchParam }) {
final store = AFibF.g.internalOnlyActiveStore;
final context = config.createContextForDiff(store, screenId, wid, launchParam: launchParam);
if(context == null) {
throw AFException("Failed to create context");
}
return config.createSPI(null, context, screenId, wid) as TSPI;
}