Protocol class

Annotations
  • @_NameSource('spec')

Constructors

Protocol({required Map<String, FieldType> fieldTypes, required String icon, required List<ProtocolInstance> instances, required List<String> locationFields, required List<String> userFields})
Protocol.fromJson(Map<String, Object?> json)

Properties

fieldTypes Map<String, FieldType>
The type definitions for the fields defined in the user_fields and location_fields. Each entry in those arrays MUST have an entry here. The string key for this object is field name itself.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
icon String
A content URI representing an icon for the third party protocol.
getter/setter pair
instances List<ProtocolInstance>
A list of objects representing independent instances of configuration. For example, multiple networks on IRC if multiple are provided by the same application service.
getter/setter pair
locationFields List<String>
Fields which may be used to identify a third party location. These should be ordered to suggest the way that entities may be grouped, where higher groupings are ordered first. For example, the name of a network should be searched before the name of a channel.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userFields List<String>
Fields which may be used to identify a third party user. These should be ordered to suggest the way that entities may be grouped, where higher groupings are ordered first. For example, the name of a network should be searched before the nickname of a user.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

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