ResponsiveBreakpoint.resize constructor Null safety

const ResponsiveBreakpoint.resize(
  1. double breakpoint,
  2. {String? name,
  3. double scaleFactor = 1}
)

Implementation

const ResponsiveBreakpoint.resize(this.breakpoint,
    {this.name, this.scaleFactor = 1})
    : this.behavior = ResponsiveBreakpointBehavior.RESIZE,
      assert(breakpoint >= 0,
          'Breakpoints cannot be negative. To control behavior from 0, set `default` parameters in `ResponsiveWrapper`.');