copyWith method

PaginationTheme copyWith({
  1. ValueGetter<double?>? gap,
  2. ValueGetter<bool?>? showLabel,
})

Returns a copy of this theme with the given fields replaced.

Implementation

PaginationTheme copyWith({
  ValueGetter<double?>? gap,
  ValueGetter<bool?>? showLabel,
}) {
  return PaginationTheme(
    gap: gap == null ? this.gap : gap(),
    showLabel: showLabel == null ? this.showLabel : showLabel(),
  );
}