copyWith method
- @useResult
- EdgeInsets? itemPadding,
- BoxConstraints? itemConstraints,
- FWidgetStateMap<
IconThemeData> ? itemIconStyle, - FWidgetStateMap<
BoxDecoration> ? itemDecoration, - FWidgetStateMap<
TextStyle> ? itemTextStyle, - TextStyle? ellipsisTextStyle,
- FTappableStyle actionTappableStyle(
- FTappableStyle style
- FTappableStyle pageTappableStyle(
- FTappableStyle style
- FFocusedOutlineStyle focusedOutlineStyle(
- FFocusedOutlineStyle style
Returns a copy of this FPaginationStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FPaginationStyle.itemPadding - The padding around each item.
- FPaginationStyle.itemConstraints - The item's constraints.
- FPaginationStyle.itemIconStyle - The icon's style.
- FPaginationStyle.itemDecoration - The decoration applied to the pagination item.
- FPaginationStyle.itemTextStyle - The default text style applied to the pagination item.
- FPaginationStyle.ellipsisTextStyle - The ellipsis's text style.
- FPaginationStyle.actionTappableStyle - The action's tappable style.
- FPaginationStyle.pageTappableStyle - The pagination item's tappable style.
- FPaginationStyle.focusedOutlineStyle - The pagination item's focused outline style.
Implementation
@useResult
FPaginationStyle copyWith({
EdgeInsets? itemPadding,
BoxConstraints? itemConstraints,
FWidgetStateMap<IconThemeData>? itemIconStyle,
FWidgetStateMap<BoxDecoration>? itemDecoration,
FWidgetStateMap<TextStyle>? itemTextStyle,
TextStyle? ellipsisTextStyle,
FTappableStyle Function(FTappableStyle style)? actionTappableStyle,
FTappableStyle Function(FTappableStyle style)? pageTappableStyle,
FFocusedOutlineStyle Function(FFocusedOutlineStyle style)? focusedOutlineStyle,
}) => FPaginationStyle(
itemPadding: itemPadding ?? this.itemPadding,
itemConstraints: itemConstraints ?? this.itemConstraints,
itemIconStyle: itemIconStyle ?? this.itemIconStyle,
itemDecoration: itemDecoration ?? this.itemDecoration,
itemTextStyle: itemTextStyle ?? this.itemTextStyle,
ellipsisTextStyle: ellipsisTextStyle ?? this.ellipsisTextStyle,
actionTappableStyle: actionTappableStyle != null
? actionTappableStyle(this.actionTappableStyle)
: this.actionTappableStyle,
pageTappableStyle: pageTappableStyle != null ? pageTappableStyle(this.pageTappableStyle) : this.pageTappableStyle,
focusedOutlineStyle: focusedOutlineStyle != null
? focusedOutlineStyle(this.focusedOutlineStyle)
: this.focusedOutlineStyle,
);