ProtocolVersion enum

Enum of the known protocol versions.

Inheritance
Available extensions

Values

v2024_11_05 → const ProtocolVersion
const ProtocolVersion('2024-11-05')
v2025_03_26 → const ProtocolVersion
const ProtocolVersion('2025-03-26')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isSupported bool
Whether or not this API is compatible with the current version.
no setter
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
versionString String
The version string used over the wire to identify this version.
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 <(ProtocolVersion other) bool
operator <=(ProtocolVersion other) bool
operator ==(Object other) bool
The equality operator.
inherited
operator >(ProtocolVersion other) bool
operator >=(ProtocolVersion other) bool

Static Methods

tryParse(String version) ProtocolVersion?
Returns the ProtocolVersion based on the version string, or null if it was not recognized.

Constants

latestSupported → const ProtocolVersion
The most recent version supported by the current API.
oldestSupported → const ProtocolVersion
The oldest version supported by the current API.
values → const List<ProtocolVersion>
A constant List of the values in this enum, in order of their declaration.