Scope class

Used to define who can access an Endpoint. Authenticated users can be associated with a Scope, if the same scope is defined in the Endpoint the user is granted access. The scope is defined by its name.

Constructors

Scope(String? name)
Creates a new Scope.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
name String?
The identifying name of this scope.
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.
override

Operators

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

Constants

admin → const Scope
Grants access to all admin functions.
none → const Scope
Used to define a scope accessible by any users (authenticated or not).