SoundSet enum

The library exposes this enum but we do not use it.

The reason is this issue: https://github.com/lichess-org/api/issues/233.

For now we can not use since it will imply that the API call deserialization will fail until the user sets the SoundSet pref manually.

So, let package user handle it himself, although we expose a helper method tryParseIgnoringCase.

Inheritance
Annotations
  • @JsonEnum(valueField: 'raw')

Constructors

SoundSet(String raw)
const

Values

silent → const SoundSet
const SoundSet('silent')
standard → const SoundSet
const SoundSet('standard')
piano → const SoundSet
const SoundSet('piano')
nes → const SoundSet
const SoundSet('nes')
sfx → const SoundSet
const SoundSet('sfx')
futuristic → const SoundSet
const SoundSet('futuristic')
robot → const SoundSet
const SoundSet('robot')
music → const SoundSet
const SoundSet('music')
speech → const SoundSet
const SoundSet('speech')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
raw String
final
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

tryParseIgnoringCase(String raw) SoundSet?
Try parse the soundSet Lichess preference string ignoring the case.

Constants

values → const List<SoundSet>
A constant List of the values in this enum, in order of their declaration.