Tools class

Helpers and tools to help you using tinode data

Constructors

Tools()

Properties

hashCode int
The hash code for this object.
no setterinherited
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.
inherited

Operators

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

Static Methods

getNextUniqueId() String
Get next message Id
isChannelTopicName(String topicName) bool
Figure out if the topic name belongs to a new channel
isGroupTopicName(String topicName) bool
Figure out if the topic name belongs to a group
isNewGroupTopicName(String topicName) bool
Figure out if the topic name belongs to a new group
isP2PTopicName(String topicName) bool
Figure out if the topic name belongs to a p2p topic
jsonParserHelper(dynamic key, dynamic value) → dynamic
Json parser helper to read messages and converting data to native objects
makeAuthorizedURL(ConnectionOptions config, String token) String
Create authorized URL
makeBaseURL(ConnectionOptions config) String
Create base URL based on connection options
normalizeArray(List<String> arr) List<String>
Trim whitespace, strip empty and duplicate elements elements If the result is an empty array, add a single element "\u2421" (Unicode Del character)
topicType(String topicName) String?
Returns the type of topic based on topic name