RouteInformation constructor

const RouteInformation(
  1. {@Deprecated('Pass Uri.parse(location) to uri parameter instead. ' 'This feature was deprecated after v3.8.0-3.0.pre.') String? location,
  2. Uri? uri,
  3. Object? state}
)

Creates a route information object.

Either location or uri must not be null.

Implementation

const RouteInformation({
  @Deprecated(
    'Pass Uri.parse(location) to uri parameter instead. '
    'This feature was deprecated after v3.8.0-3.0.pre.'
  )
  String? location,
  Uri? uri,
  this.state,
}) : _location = location,
     _uri = uri,
     assert((location != null) != (uri != null));