INNER CODE UNIT · Dart

WoltModalSheetState

woltapp/wolt_modal_sheet · lib/src/wolt_modal_sheet.dart:269

class WoltModalSheetState extends State<WoltModalSheet> {
  List<SliverWoltModalSheetPage> _pages = [];

  /// The list of pages in the modal sheet.
  List<SliverWoltModalSheetPage> get pages => _pages;

  /// The current page displayed in the modal sheet.
  SliverWoltModalSheetPage get currentPage => _pages[_currentPageIndex];

  /// The index of the currently displayed page in the in-modal navigation stack.
  int get currentPageIndex => _currentPageIndex;

  /// Returns true if the current page is the first page in the stack.
  bool get isAtFirstPage => _currentPageIndex == 0;

  /// Returns true if the current page is the last page in the stack.
  bool get isAtLastPage => _currentPageIndex == _pages.length - 1;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…