ResponsiveBreakpoint.tag constructor Null safety

const ResponsiveBreakpoint.tag(
  1. double breakpoint,
  2. {required String name}
)

Implementation

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