copyWith method

ScrollToBottomOptions copyWith({
  1. bool? disabled,
  2. bool? alwaysVisible,
  3. VoidCallback? onScrollToBottomPress,
  4. Widget scrollToBottomBuilder(
    1. ScrollController
    )?,
  5. double? bottomOffset,
  6. double? rightOffset,
  7. bool? showText,
  8. String? buttonText,
})

Implementation

ScrollToBottomOptions copyWith({
  bool? disabled,
  bool? alwaysVisible,
  VoidCallback? onScrollToBottomPress,
  Widget Function(ScrollController)? scrollToBottomBuilder,
  double? bottomOffset,
  double? rightOffset,
  bool? showText,
  String? buttonText,
}) =>
    ScrollToBottomOptions(
      disabled: disabled ?? this.disabled,
      alwaysVisible: alwaysVisible ?? this.alwaysVisible,
      onScrollToBottomPress:
          onScrollToBottomPress ?? this.onScrollToBottomPress,
      scrollToBottomBuilder:
          scrollToBottomBuilder ?? this.scrollToBottomBuilder,
      bottomOffset: bottomOffset ?? this.bottomOffset,
      rightOffset: rightOffset ?? this.rightOffset,
      showText: showText ?? this.showText,
      buttonText: buttonText ?? this.buttonText,
    );