const WidgetSwitch({ required this.value, required this.widgetFactories, Key? key, }) : super(key: key);