INNER CODE UNIT · Dart

InViewState

rvamsikrishna/inview_notifier_list · lib/src/inview_state.dart:9

class InViewState extends ChangeNotifier {
  ///The context's of the widgets in the listview that the user expects a
  ///notification whether it is in-view or not.
  late Set<WidgetData> _contexts;

  ///The String id's of the widgets in the listview that the user expects a
  ///notification whether it is in-view or not. This helps to make recognition easy.
  final List<String> _currentInViewIds = [];
  final IsInViewPortCondition? _isInViewCondition;
  final Axis _scrollDirection;

  InViewState(
      {required List<String> intialIds,
      Axis scrollDirection = Axis.vertical,
      bool Function(double, double, double)? isInViewCondition})
      : _isInViewCondition = isInViewCondition,
        _scrollDirection = scrollDirection {
    _contexts = <WidgetData>{};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…