Destination class Null safety

Navigation destination.

Annotations

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.
read-onlyoverride
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.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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