Route<T> constructor Null safety

Route<T>(
  1. {RouteSettings? settings}
)

Initialize the Route.

If the settings are not provided, an empty RouteSettings object is used instead.

Implementation

Route({ RouteSettings? settings }) : _settings = settings ?? const RouteSettings();