ModelToken class

Class for storing multiple tokens.

Can be used for token management of PUSH notifications, etc.

複数トークンを保存するためのクラス。

PUSH通知のトークン管理等に利用可能です。

Inheritance
Implemented types
Available Extensions
Annotations

Constructors

ModelToken(List<String> tokenList)
Class for storing multiple tokens.
const
factory
ModelToken.fromJson(DynamicMap json)
Convert from json map to ModelToken.
factory
ModelToken.fromServer(List<String> tokenList)
Used to disguise the retrieval of data from the server.
const
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value List<String>
Actual value.
no setteroverride

Methods

add(String token) → void
Register a new token.
clear() → void
Delete all tokens.
compareTo(ModelToken other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String token) → void
Delete token.
toJson() DynamicMap
Methods for Json serialization.
override
toString() String
A string representation of this object.
override

Operators

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

Constants

kListKey → const String
Key to save the list.
kSourceKey → const String
Key to store the data source.
typeString → const String
Type key.