copyWith method

ListGroupStyle copyWith({
  1. ScrollController? controller,
  2. bool? primary,
  3. Axis? scrollDirection,
  4. bool? reverse,
  5. ScrollPhysics? physics,
  6. double? height,
  7. double? width,
})

Implementation

ListGroupStyle copyWith({
  ScrollController? controller,
  bool? primary,
  Axis? scrollDirection,
  bool? reverse,
  ScrollPhysics? physics,
  double? height,
  double? width,
}) {
  return ListGroupStyle(
    controller: controller ?? this.controller,
    primary: primary ?? this.primary,
    scrollDirection: scrollDirection ?? this.scrollDirection,
    reverse: reverse ?? this.reverse,
    physics: physics ?? this.physics,
    height: height ?? this.height,
    width: width ?? this.width,
  );
}