NoteModel class

Constructors

NoteModel({required String name, required int octave, required int noteIndex, required bool isFlat})
const
NoteModel.fromJson(String source)
factory
NoteModel.fromMap(Map<String, dynamic> map)
factory
NoteModel.fromMidiNoteNumber(int midiNoteNumber, NoteType noteType)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
isFlat bool
final
midiNoteNumber int
no setter
name String
final
noteIndex int
final
octave int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? name, int? octave, int? noteIndex, bool? isFlat}) NoteModel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(covariant NoteModel other) bool
The equality operator.
override