button property

Widget get button

Implementation

Widget get button {
  switch (type) {
    case SwitchType.onOff:
      return lazySwitch.onOff(
        disabled: disabled,
        onToggle: onToggle,
        showOnOff: showOnOff,
        value: value,
      );
    case SwitchType.toggle:
      return lazySwitch.toggle(
        activeIcon: activeIcon,
        activeText: activeText,
        disabled: disabled,
        inactiveIcon: inactiveIcon,
        inactiveText: inactiveText,
        onToggle: onToggle,
        showOnOff: showOnOff,
        value: value,
      );
  }
}