copyWith method
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,
复制并修改主题 / 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,
);
}