Destination class

Navigation destination.

Annotations
  • @JsonSerializable(explicitToJson: true)
  • @immutable

Constructors

Destination({required String path, DestinationMetadata metadata = const DestinationMetadata()})
Create a navigation destination with a path and it's metadata.
const
Destination.fromJson(Map<String, Object?> json)
Create a Destination from it's json representation.
factory
Destination.fromRouteInformation(RouteInformation routeInformation)
Create a Destination from RouteInformation.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
metadata DestinationMetadata
The metadata of the destination.
final
path String
The navigation destination path.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
Convert Destination instance to a json representation
toRouteInformation() RouteInformation
Convert the current Destination to a RouteInformation.
toSettings() RouteSettings
Convert the current Destination to a RouteSettings.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override