void initState()

in scroll_overlay/lib/main.dart [37:49]


  void initState() {
    super.initState();
    instrumentingPhysics = InstrumentingScrollPhysics(velocityListener: (double velocity) {
      SchedulerBinding.instance.addPostFrameCallback((Duration timestamp) {
        if (velocity != flutterFlingVelocity)
          setState(() => flutterFlingVelocity = velocity);
      });
    });
    _platformVelocityEventChannel.receiveBroadcastStream().listen((dynamic velocity) {
      if (velocity != platformFlingVelocity)
        setState(() => platformFlingVelocity = velocity);
    });
  }