INNER CODE UNIT · Dart

InViewNotifier

rvamsikrishna/inview_notifier_list · lib/src/inview_notifier.dart:11

class InViewNotifier extends StatefulWidget {
  ///The String list of ids of the child widgets that should be initialized as inView
  ///when the list view is built for the first time.
  final List<String> initialInViewIds;

  ///The widget that should be displayed in the [InViewNotifier].
  ///
  ///This is typically a [ScrollView] (e.g. [ListView], [CustomScrollView]),
  ///but can be any widget when a [ScrollViewWrapper] is used to wrap
  ///the scroll view with additional functionality like pull-to-refresh.
  final Widget child;

  ///The distance from the bottom of the list where the [onListEndReached] should be invoked.
  final double endNotificationOffset;

  ///The function that is invoked when the list scroll reaches the end
  ///or the [endNotificationOffset] if provided.
  final VoidCallback? onListEndReached;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…