PageView constructor

PageView({
  1. String? id,
  2. Map<String, String>? attributes,
  3. Map<String, dynamic>? style,
  4. String? className,
  5. String? initialPage,
  6. void onPageChange(
    1. int,
    2. Map<String, dynamic>
    )?,
  7. required List<Page> pages,
})

Implementation

PageView({
  super.id,
  super.attributes,
  super.style,
  super.className,
  this.initialPage,
  this.onPageChange,
  required this.pages,
}) : super(tag: 'div') {
  router = Router(
    hasInitialPage: initialPage != null,
  );

  if (initialPage != null) {
    _matchRoute(initialPage!);
  }
}