Page constructor

Page({
  1. String? name,
  2. String? displayName,
  3. Form? form,
  4. Fulfillment? entryFulfillment,
  5. Iterable<TransitionRoute>? transitionRoutes,
  6. Iterable<EventHandler>? eventHandlers,
  7. Iterable<String>? transitionRouteGroups,
})

Implementation

factory Page({
  $core.String? name,
  $core.String? displayName,
  Form? form,
  $18.Fulfillment? entryFulfillment,
  $core.Iterable<TransitionRoute>? transitionRoutes,
  $core.Iterable<EventHandler>? eventHandlers,
  $core.Iterable<$core.String>? transitionRouteGroups,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (displayName != null) {
    _result.displayName = displayName;
  }
  if (form != null) {
    _result.form = form;
  }
  if (entryFulfillment != null) {
    _result.entryFulfillment = entryFulfillment;
  }
  if (transitionRoutes != null) {
    _result.transitionRoutes.addAll(transitionRoutes);
  }
  if (eventHandlers != null) {
    _result.eventHandlers.addAll(eventHandlers);
  }
  if (transitionRouteGroups != null) {
    _result.transitionRouteGroups.addAll(transitionRouteGroups);
  }
  return _result;
}