createCupertinoWidget method

  1. @override
CupertinoSwitch createCupertinoWidget(
  1. BuildContext context
)
override

Implementation

@override
CupertinoSwitch createCupertinoWidget(BuildContext context) {
  final data = cupertino?.call(context, platform(context));

  return CupertinoSwitch(
    key: data?.widgetKey ?? widgetKey,
    value: data?.value ?? value,
    onChanged: data?.onChanged ?? onChanged,
    activeColor: data?.activeColor ?? activeColor,
    dragStartBehavior: data?.dragStartBehavior ??
        dragStartBehavior ??
        DragStartBehavior.start,
    trackColor: data?.trackColor,
    thumbColor: data?.thumbColor,
  );
}