Accidental class final

An accidental.


See also:

Implemented types
Annotations
  • @immutable

Constructors

Accidental(int semitones)
Creates a new Accidental from semitones.
const
Accidental.parse(String source)
Parse source as an Accidental and return its value.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
isFlat bool
Whether this Accidental is flat (♭, 𝄫, etc.).
no setter
isNatural bool
Whether this Accidental is natural (♮).
no setter
isSharp bool
Whether this Accidental is sharp (♯, 𝄪, etc.).
no setter
name String
The name of this Accidental.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semitones int
The number of semitones above or below the natural note.
final
symbol String
The symbol of this Accidental.
no setter

Methods

compareTo(Accidental other) int
Compares this object to another object.
override
incrementBy(int semitones) Accidental
This Accidental incremented by semitones.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString({NoteNotation system = const EnglishNoteNotation(showNatural: true)}) String
The string representation of this Accidental based on system.
override

Operators

operator +(int semitones) Accidental
Adds semitones to this Accidental.
operator -(int semitones) Accidental
Subtracts semitones from this Accidental.
operator ==(Object other) bool
The equality operator.
override

Constants

doubleFlat → const Accidental
A double flat (𝄫) Accidental.
doubleSharp → const Accidental
A double sharp (𝄪) Accidental.
flat → const Accidental
A flat (♭) Accidental.
natural → const Accidental
A natural (♮) Accidental.
sharp → const Accidental
A sharp (♯) Accidental.
symbols → const List<String>
The list of valid symbols for an Accidental.
tripleFlat → const Accidental
A triple flat (♭𝄫) Accidental.
tripleSharp → const Accidental
A triple sharp (♯𝄪) Accidental.