Page<T> constructor

const Page<T>({
  1. LocalKey? key,
  2. String? name,
  3. Object? arguments,
  4. String? restorationId,
  5. bool canPop = true,
  6. PopInvokedWithResultCallback<T> onPopInvoked = _defaultPopInvokedHandler,
})

Creates a page and initializes key for subclasses.

Implementation

const Page({
  this.key,
  super.name,
  super.arguments,
  this.restorationId,
  this.canPop = true,
  this.onPopInvoked = _defaultPopInvokedHandler,
});