Properties class Null safety

Name-value pairs for public keys.

Collection of name-value pair properties. Names are case-insensitive. There can be multiple values for a given name. The names are unordered in the collection of properties. But if there are multiple properties with the same name, their values are ordered.

Properties are used to store the headers in the SSH Public Key (FRC 4716) format. Properties completely support all the capability of headers, even though in practice they are commonly used for one comment and maybe one subject header. Other formats only support one optional comment, or nothing at all.

Since having a single comment is the most common use of properties, the comment getter and setter are provided as a convenient way to access the first comment property. Multiple comment properties are not supported when using the comment getter and setter (but multiple comment properties should not be used, even though RFC 4716 does not explicitly prohibit them).

Constructors

Properties()

Properties

comment String?
Retrieves the first comment. [...]
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
keys Iterable<String>
Names of all the properties. [...]
read-only
length int
Number of properties. [...]
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(String name, String value) → void
Add a property. [...]
clear() → void
Remove all properties. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
remove(String name) int
Remove all properties with a given name. [...]
toString() String
A string representation of this object. [...]
inherited
values(String name) Iterable<String>?
All the values of a given named property. [...]

Operators

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

Constants

commentName → const String
Name for the comment property.
'Comment'