ToggleText constructor

ToggleText({
  1. bool value = false,
  2. required Widget on,
  3. required Widget off,
  4. required ValueChanged<bool> onChanged,
  5. double? fontSize,
  6. Color? colorOn,
  7. Color? colorOff,
  8. bool onPrimary = false,
})

Implementation

ToggleText({this.value = false, required Widget on, required Widget off, required this.onChanged, this.fontSize, this.colorOn, this.colorOff, this.onPrimary = false})
  : _onWidget = on,
    _offWidget = off;