return the current value given a widget widget the widget
widget
@override dynamic getValue(Switch widget) { return widget.value; }