clone method

Implementation

AnythingPickerOptions clone() {
  AnythingPickerOptions newInstance = AnythingPickerOptions();

  newInstance.isHorizontal = isHorizontal;
  newInstance.mainAxisAlignment = mainAxisAlignment;
  newInstance.mainAxisSize = mainAxisSize;
  newInstance.crossAxisAlignment = crossAxisAlignment;
  newInstance.textDirection = textDirection;
  newInstance.verticalDirection = verticalDirection;
  newInstance.textBaseline = textBaseline;

  newInstance.bubbleTriangleDirection = bubbleTriangleDirection;
  newInstance.isTriangleOccupiedSpace = isTriangleOccupiedSpace;
  newInstance.bubbleColor = bubbleColor;
  newInstance.bubbleRadius = bubbleRadius;
  newInstance.bubbleShadowRadius = bubbleShadowRadius;
  newInstance.bubbleShadowColor = bubbleShadowColor;
  newInstance.bubbleTriangleLength = bubbleTriangleLength;
  newInstance.bubbleTrianglePointOffset = bubbleTrianglePointOffset;
  newInstance.bubbleTriangleTranslation = bubbleTriangleTranslation;

  newInstance.requiredIcon = requiredIcon;

  newInstance.titleStyle = titleStyle;
  newInstance.titleMaxLines = titleMaxLines;
  newInstance.titleOverflow = titleOverflow;
  newInstance.titleWrapFlexible = titleWrapFlexible;
  newInstance.titleTailWidgets = titleTailWidgets;

  newInstance.contentWidth = contentWidth;
  newInstance.contentHeight = contentHeight;
  newInstance.contentMargin = contentMargin;
  newInstance.contentPadding = contentPadding;
  newInstance.contentDecorationNormal = contentDecorationNormal;
  newInstance.contentDecorationFocused = contentDecorationFocused;

  newInstance.contentHintText = contentHintText;
  newInstance.contentMaxLines = contentMaxLines;
  newInstance.contentOverflow = contentOverflow;
  newInstance.contentHintStyle = contentHintStyle;
  newInstance.contentTextStyle = contentTextStyle;

  newInstance.contentStartWidget = contentStartWidget;
  newInstance.contentEndWidget = contentEndWidget;
  newInstance.contentArrowIcon = contentArrowIcon;
  newInstance.contentArrowTween = contentArrowTween;
  newInstance.contentClearIcon = contentClearIcon;
  newInstance.contentLoadingIcon = contentLoadingIcon;

  newInstance.stickToSide = stickToSide;
  newInstance.pickerMarginScreenTop = pickerMarginScreenTop;
  newInstance.pickerMarginScreenBottom = pickerMarginScreenBottom;

  newInstance.pickerWidth = pickerWidth;
  newInstance.pickerHeight = pickerHeight;
  newInstance.pickerMaxWidth = pickerMaxWidth;
  newInstance.pickerMaxHeight = pickerMaxHeight;
  newInstance.pickerMinWidth = pickerMinWidth;
  newInstance.pickerMinHeight = pickerMinHeight;
  newInstance.pickerShowOffsetX = pickerShowOffsetX;
  newInstance.pickerShowOffsetY = pickerShowOffsetY;

  newInstance.itemWidth = itemWidth;
  newInstance.itemHeight = itemHeight;
  newInstance.itemMargin = itemMargin;
  newInstance.itemPadding = itemPadding;
  newInstance.itemAlignment = itemAlignment;
  newInstance.itemDecorationNormal = itemDecorationNormal;
  newInstance.itemDecorationTapped = itemDecorationTapped;
  newInstance.itemDecorationDisabled = itemDecorationDisabled;

  newInstance.itemMaxLines = itemMaxLines;
  newInstance.itemStyleNormal = itemStyleNormal;
  newInstance.itemStyleSelected = itemStyleSelected;
  newInstance.itemStyleDisabled = itemStyleDisabled;

  newInstance.itemPrefixWidget = itemPrefixWidget;
  newInstance.itemSuffixWidget = itemSuffixWidget;
  newInstance.itemCheckedWidget = itemCheckedWidget;
  newInstance.itemNoDataWidget = itemNoDataWidget;
  return newInstance;
}