CupertinoSwitch constructor

const CupertinoSwitch({Key key, @required bool value, @required ValueChanged<bool> onChanged, Color activeColor })

Creates an iOS-style switch.

Implementation

const CupertinoSwitch({
  Key key,
  @required this.value,
  @required this.onChanged,
  this.activeColor,
}) : super(key: key);