Path class final

Provides a parameter in the url.

Declared as follows inside the path String:

@Get(path: '/{param}')

Available inside method declaration:

@Get(path: '/{param}')
Future<Response> fetch(@Path() String param);
Annotations
  • @immutable
  • @Target({TargetKind.parameter})

Constructors

Path([String? name])
Provides a parameter in the url.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String?
Name is used to bind a method parameter to a URL path parameter.
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
toString() String
A string representation of this object.
inherited

Operators

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