Network class Null safety

Main Network Class. You Should Create A Subclass Extending This Class

Constructors

Network(String _id)

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

addServer(Server server) → void
Adds Server To Network
call(String serverId, String routeId, {int requestType = NetworkRequestType.POST, Map<String, dynamic>? data, Map<String, String>? replacements, Map<String, dynamic>? headers}) Future<NetworkResult>
This Is Your Request Interface You can change the way you are sending a request to the server
getId() String
Returns Network Id
getServer(String id) Server
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

Static Methods

of<T>(String id) → T