TokenConfig class

Token配置

Constructors

TokenConfig({bool useToken = true, String? customToken})

Properties

customToken → String?
自定义Token(可选,如果有设置则使用此Token而不是全局Token)
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
useToken → bool
是否使用Token,默认为true
final

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

Static Properties

noToken ↔ TokenConfig
不使用Token
getter/setter pair

Static Methods

withToken([String? customToken]) → TokenConfig
使用Token(默认)