ServerRoute class Null safety

Server Route Representing Any Routes In Your Network Static Route /auth/signin Dynamic Route /user/{id}/posts/get

Constructors

ServerRoute(String _id, String _path, {Map<String, String>? defaultHeader, Map<String, String>? defaultBody})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getDefaultBody() Map<String, dynamic>
Returns Default Body
getDefaultHeader() Map<String, dynamic>
Returns Default Header
getId() String
Returns Route Id
getPath({Map<String, String>? replacements}) String
Returns Path With Given Replacements
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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