copyWith method Null safety

ResponsiveBreakpoint copyWith(
  1. {double? breakpoint,
  2. String? name,
  3. ResponsiveBreakpointBehavior? behavior,
  4. double? scaleFactor}
)

Implementation

ResponsiveBreakpoint copyWith({
  double? breakpoint,
  String? name,
  ResponsiveBreakpointBehavior? behavior,
  double? scaleFactor,
}) =>
    ResponsiveBreakpoint(
      breakpoint: breakpoint ?? this.breakpoint,
      name: name ?? this.name,
      behavior: behavior ?? this.behavior,
      scaleFactor: scaleFactor ?? this.scaleFactor,
    );