copyWith method Null safety

ResponsiveBreakpointSegment copyWith(
  1. {double? breakpoint,
  2. ResponsiveBreakpointBehavior? segmentType,
  3. ResponsiveBreakpoint? responsiveBreakpoint}
)

Implementation

ResponsiveBreakpointSegment copyWith({
  double? breakpoint,
  ResponsiveBreakpointBehavior? segmentType,
  ResponsiveBreakpoint? responsiveBreakpoint,
}) =>
    ResponsiveBreakpointSegment(
      breakpoint: breakpoint ?? this.breakpoint,
      segmentType: segmentType ?? this.segmentType,
      responsiveBreakpoint: responsiveBreakpoint ?? this.responsiveBreakpoint,
    );