attach method

  1. @override
Widget? attach(
  1. BuildContext context,
  2. SwitchViewController controller
)
override

Implementation

@override
Widget? attach(context, controller) {
  return SwitchButton(
    activeThumbColor: activeThumbColor,
    activeThumbIcon: activeThumbIcon,
    activeThumbIconTint: activeThumbIconTint,
    activeThumbStrokeColor: activeThumbStrokeColor,
    activeThumbStrokeSize: activeThumbStrokeSize,
    activeThumbSpacing: activeThumbSpacing,
    activeTrackColor: activeTrackColor,
    activeTrackStrokeColor: activeTrackStrokeColor,
    inactiveThumbColor: inactiveThumbColor,
    inactiveThumbIcon: inactiveThumbIcon,
    inactiveThumbIconTint: inactiveThumbIconTint,
    inactiveThumbStrokeColor: inactiveThumbStrokeColor,
    inactiveThumbStrokeSize: inactiveThumbStrokeSize,
    inactiveThumbSpacing: inactiveThumbSpacing,
    inactiveTrackColor: inactiveTrackColor,
    inactiveTrackStrokeColor: inactiveTrackStrokeColor,
    enabled: controller.enabled,
    size: size,
    thumbIconSpacing: thumbIconSpacing,
    thumbWalkingTime: thumbWalkingTime,
    trackBorderRadius: trackBorderRadius,
    trackRatio: trackRatio,
    trackStrokeSize: trackStrokeSize,
    value: controller.activated,
  );
}