copyWith method
- @useResult
- EdgeInsets? itemPadding,
- BoxConstraints? itemConstraints,
- FWidgetStateMap<
IconThemeData> ? itemIconStyle, - FWidgetStateMap<
BoxDecoration> ? itemDecoration, - FWidgetStateMap<
TextStyle> ? itemTextStyle, - TextStyle? ellipsisTextStyle,
- FTappableStyle actionTappableStyle()?,
- FTappableStyle pageTappableStyle()?,
- FFocusedOutlineStyle focusedOutlineStyle()?,
Returns a copy of this FPaginationStyle with the given properties replaced.
Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.
itemPadding
The padding around each item. Defaults to EdgeInsets.symmetric(horizontal: 2)`.
itemConstraints
The item's constraints. Defaults to BoxConstraints(maxWidth: 40, minWidth: 40, maxHeight: 40, minHeight: 40)
.
itemIconStyle
The icon's style.
Supported states:
itemDecoration
The decoration applied to the pagination item.
Supported states:
itemTextStyle
The default text style applied to the pagination item.
Supported states:
ellipsisTextStyle
The ellipsis's text style.
actionTappableStyle
The action's tappable style.
pageTappableStyle
The pagination item's tappable style.
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)? actionTappableStyle,
FTappableStyle Function(FTappableStyle)? pageTappableStyle,
FFocusedOutlineStyle Function(FFocusedOutlineStyle)? 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,
);