Page<T> constructor Null safety

const Page<T>(
  1. {LocalKey? key,
  2. String? name,
  3. Object? arguments,
  4. String? restorationId}
)

Creates a page and initializes key for subclasses.

The arguments argument must not be null.

Implementation

const Page({
  this.key,
  String? name,
  Object? arguments,
  this.restorationId,
}) : super(name: name, arguments: arguments);