FFPageViewIndicatorOptions constructor

FFPageViewIndicatorOptions({
  1. bool? hasIndicator,
  2. FFAlignment? alignment,
  3. FFPadding? indicatorPadding,
  4. double? expansionFactor,
  5. double? legacySpacing,
  6. double? legacyBorderRadius,
  7. double? legacyDotWidth,
  8. double? legacyDotHeight,
  9. FFColor? legacyInactiveColor,
  10. FFColor? legacyActiveColor,
  11. bool? outline,
  12. FFDoubleValue? spacingValue,
  13. FFDoubleValue? borderRadiusValue,
  14. FFDoubleValue? dotWidthValue,
  15. FFDoubleValue? dotHeightValue,
  16. FFColorValue? inactiveColorValue,
  17. FFColorValue? activeColorValue,
})

Implementation

factory FFPageViewIndicatorOptions({
  $core.bool? hasIndicator,
  FFAlignment? alignment,
  FFPadding? indicatorPadding,
  $core.double? expansionFactor,
  $core.double? legacySpacing,
  $core.double? legacyBorderRadius,
  $core.double? legacyDotWidth,
  $core.double? legacyDotHeight,
  FFColor? legacyInactiveColor,
  FFColor? legacyActiveColor,
  $core.bool? outline,
  FFDoubleValue? spacingValue,
  FFDoubleValue? borderRadiusValue,
  FFDoubleValue? dotWidthValue,
  FFDoubleValue? dotHeightValue,
  FFColorValue? inactiveColorValue,
  FFColorValue? activeColorValue,
}) {
  final result = create();
  if (hasIndicator != null) result.hasIndicator = hasIndicator;
  if (alignment != null) result.alignment = alignment;
  if (indicatorPadding != null) result.indicatorPadding = indicatorPadding;
  if (expansionFactor != null) result.expansionFactor = expansionFactor;
  if (legacySpacing != null) result.legacySpacing = legacySpacing;
  if (legacyBorderRadius != null)
    result.legacyBorderRadius = legacyBorderRadius;
  if (legacyDotWidth != null) result.legacyDotWidth = legacyDotWidth;
  if (legacyDotHeight != null) result.legacyDotHeight = legacyDotHeight;
  if (legacyInactiveColor != null)
    result.legacyInactiveColor = legacyInactiveColor;
  if (legacyActiveColor != null) result.legacyActiveColor = legacyActiveColor;
  if (outline != null) result.outline = outline;
  if (spacingValue != null) result.spacingValue = spacingValue;
  if (borderRadiusValue != null) result.borderRadiusValue = borderRadiusValue;
  if (dotWidthValue != null) result.dotWidthValue = dotWidthValue;
  if (dotHeightValue != null) result.dotHeightValue = dotHeightValue;
  if (inactiveColorValue != null)
    result.inactiveColorValue = inactiveColorValue;
  if (activeColorValue != null) result.activeColorValue = activeColorValue;
  return result;
}