buildByCupertino method

  1. @override
Widget buildByCupertino(
  1. BuildContext context
)
override

*** material properties end ***

Implementation

@override
Widget buildByCupertino(BuildContext context) {
  return CupertinoSwitch(
    key: valueFromCupertino('key', key),
    value: valueFromCupertino('value', value),
    activeColor: valueFromCupertino('activeColor', activeColor),
    trackColor: valueFromCupertino('trackColor', trackColor),
    dragStartBehavior: valueFromCupertino(
      'dragStartBehavior',
      dragStartBehavior,
    ),
    onChanged: valueFromCupertino('onChanged', onChanged),
  );
}