copyWith method

PagerTheme copyWith({
  1. TextStyle? textStyle,
  2. Color? pageIndicatorColor,
  3. Color? pageIndicatorActiveColor,
  4. Color? checkedPageColor,
  5. BoxDecoration? checkedPageBoxDecoration,
  6. double? pageTextSize,
  7. double? pageIndicatorHeight,
  8. double? borderRadius,
  9. BoxBorder? focusBorder,
  10. TextStyle? inputTextStyle,
  11. TextStyle? inputHintTextStyle,
  12. Color? inputBgColor,
  13. OutlineInputTextBorder? outlineInputTextBorder,
  14. EdgeInsetsGeometry? inputContentPadding,
  15. double? inputHeight,
  16. double? inputWidth,
})

复制并修改主题 / Copy with modifications

Implementation

PagerTheme copyWith({
  TextStyle? textStyle,
  Color? pageIndicatorColor,
  Color? pageIndicatorActiveColor,
  Color? checkedPageColor,
  BoxDecoration? checkedPageBoxDecoration,
  double? pageTextSize,
  double? pageIndicatorHeight,
  double? borderRadius,
  BoxBorder? focusBorder,
  TextStyle? inputTextStyle,
  TextStyle? inputHintTextStyle,
  Color? inputBgColor,
  OutlineInputTextBorder? outlineInputTextBorder,
  EdgeInsetsGeometry? inputContentPadding,
  double? inputHeight,
  double? inputWidth,
}) {
  return PagerTheme(
    textStyle: textStyle ?? this.textStyle,
    pageIndicatorColor: pageIndicatorColor ?? this.pageIndicatorColor,
    pageIndicatorActiveColor: pageIndicatorActiveColor ?? this.pageIndicatorActiveColor,
    checkedPageColor: checkedPageColor ?? this.checkedPageColor,
    checkedPageBoxDecoration: checkedPageBoxDecoration ?? this.checkedPageBoxDecoration,
    pageTextSize: pageTextSize ?? this.pageTextSize,
    pageIndicatorHeight: pageIndicatorHeight ?? this.pageIndicatorHeight,
    borderRadius: borderRadius ?? this.borderRadius,
    focusBorder: focusBorder ?? this.focusBorder,
    inputTextStyle: inputTextStyle ?? this.inputTextStyle,
    inputHintTextStyle: inputHintTextStyle ?? this.inputHintTextStyle,
    inputBgColor: inputBgColor ?? this.inputBgColor,
    outlineInputTextBorder: outlineInputTextBorder ?? this.outlineInputTextBorder,
    inputContentPadding: inputContentPadding ?? this.inputContentPadding,
    inputHeight: inputHeight ?? this.inputHeight,
    inputWidth: inputWidth ?? this.inputWidth,
  );
}