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,
    applyTheme: data?.applyTheme,
    focusColor: data?.focusColor,
    autofocus: data?.autofocus ?? autofocus ?? false,
    focusNode: data?.focusNode ?? focusNode,
    onFocusChange: data?.onFocusChange ?? onFocusChange,
    offLabelColor: data?.offLabelColor,
    onLabelColor: data?.onLabelColor,
  );
}