build method Null safety

  1. @override
dynamic build(
  1. dynamic context
)

Implementation

@override
Widget build(BuildContext context) {
  // [_startLiveFeed] is called both with [onResume] and [onPause] to cover
  // all entry points
  return LifeCycleManager(
    onStart: _startLiveFeed,
    onResume: _onResumeImageStream,
    onVisible: () => _onResumeImageStream(forceStartPreview: true),
    onPause: _onPauseImageStream,
    onInvisible: _onPauseImageStream,
    child: _buildScannerWidget(),
  );
}