BeamState constructor

BeamState({
  1. List<String> pathPatternSegments = const <String>[],
  2. Map<String, String> pathParameters = const <String, String>{},
  3. Map<String, String> queryParameters = const <String, String>{},
  4. Object? routeState,
})

Creates a BeamState with specified properties.

All of the properties have empty or null default values.

Implementation

BeamState({
  this.pathPatternSegments = const <String>[],
  this.pathParameters = const <String, String>{},
  this.queryParameters = const <String, String>{},
  this.routeState,
}) : assert(() {
        json.encode(routeState);
        return true;
      }()) {
  configure();
}