Providers class

Indicates how the service was accessed.

This will be passed to the params object in a service method. When requested on the server side, this will be null.

Constructors

Providers(String via)
const

Properties

hashCode → int
The hash code for this object. [...]
read-only
via → String
The transport through which the client is accessing this service.
final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toJson() → Map<String, String>
toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]

Constants

graphQL → const Providers
Represents a request parsed from GraphQL.
const Providers(viaGraphQL)
rest → const Providers
Represents a request via REST.
const Providers(viaRest)
viaGraphQL → const String
"graphql"
viaRest → const String
"rest"
viaWebsocket → const String
"websocket"
websocket → const Providers
Represents a request over WebSockets.
const Providers(viaWebsocket)