WidgetWrapper<TState extends $EzStateBase<TWidget>, TWidget extends EzStatefulWidgetBase> constructor

WidgetWrapper<TState extends $EzStateBase<TWidget>, TWidget extends EzStatefulWidgetBase>(
  1. TWidget widget, {
  2. Map<String, Function> mapEmitHandlers = const {},
  3. Map<String, dynamic> mapProps = const {},
  4. Map<String, dynamic> mapRouteParams = const {},
  5. Map<String, WidgetMockFactory> mapHostedWidgetMockFactories = const {},
  6. Map<String, dynamic>? mapDIOverrides,
})

Implementation

WidgetWrapper(TWidget widget, {
	this.mapEmitHandlers = const { },
	this.mapProps = const { },
	this.mapRouteParams = const { },
	this.mapHostedWidgetMockFactories = const { },
	this.mapDIOverrides,
}) {
	this._widget = widget;
	this._initWidgetWrapperForWidget();
	this._initEmitHandlers();
	// this._initModels();
	this._initProps();
	this._initLifecycleHandlers();
}