fromRatingView method
Implementation
RatingViewController fromRatingView(RatingView view) {
super.fromView(view);
/// BASE PROPERTIES
currentRating = view.initialRating;
allowHalfRating = view.allowHalfRating;
draggable = view.draggable;
ignoreGestures = view.ignoreGestures;
initialRating = view.initialRating;
itemCount = view.itemCount;
itemPadding = view.itemPadding;
itemSize = view.itemSize;
glow = view.glow;
glowColor = view.glowColor;
glowRadius = view.glowRadius;
maxRating = view.maxRating;
minRating = view.minRating;
ratingColor = view.ratingColor;
ratingColorState = view.ratingColorState;
ratingIcon = view.ratingIcon;
ratingIconState = view.ratingIconState;
ratingPhysics = view.ratingPhysics;
tapMode = view.tapMode;
textDirection = view.textDirection;
type = view.type;
_unratedColor = view.unratedColor;
wrapAlignment = view.wrapAlignment;
/// CALLBACKS
onRatingChange = view.onRatingChange;
return this;
}