FFPageView constructor

FFPageView({
  1. FFDimensions? dimensions,
  2. FFAxis? scrollDirection,
  3. FFPadding? margin,
  4. FFPageViewIndicatorOptions? indicatorOptions,
  5. bool? allowScrolling,
  6. int? legacyInitialPageIndex,
  7. bool? updatePageOnSwipe,
  8. FFIntegerValue? initialPageIndexValue,
})

Implementation

factory FFPageView({
  FFDimensions? dimensions,
  FFAxis? scrollDirection,
  FFPadding? margin,
  FFPageViewIndicatorOptions? indicatorOptions,
  $core.bool? allowScrolling,
  $core.int? legacyInitialPageIndex,
  $core.bool? updatePageOnSwipe,
  FFIntegerValue? initialPageIndexValue,
}) {
  final result = create();
  if (dimensions != null) result.dimensions = dimensions;
  if (scrollDirection != null) result.scrollDirection = scrollDirection;
  if (margin != null) result.margin = margin;
  if (indicatorOptions != null) result.indicatorOptions = indicatorOptions;
  if (allowScrolling != null) result.allowScrolling = allowScrolling;
  if (legacyInitialPageIndex != null)
    result.legacyInitialPageIndex = legacyInitialPageIndex;
  if (updatePageOnSwipe != null) result.updatePageOnSwipe = updatePageOnSwipe;
  if (initialPageIndexValue != null)
    result.initialPageIndexValue = initialPageIndexValue;
  return result;
}