copyWith method

FSResponsive copyWith({
  1. double? screenWidth,
  2. FSCustomBreakpoints? breakpoints,
})

Create a copy with updated screen width

Implementation

FSResponsive copyWith({
  double? screenWidth,
  FSCustomBreakpoints? breakpoints,
}) {
  return FSResponsive(
    screenWidth: screenWidth ?? this.screenWidth,
    breakpoints: breakpoints ?? this.breakpoints,
  );
}