PianoWidget class

Inheritance

Constructors

PianoWidget.custom({required int keys, required String startWith, double height = 56, dynamic divider = 0.5, dynamic keyBuilder = buildKey})
factory
PianoWidget.keys32c({double height = 56, double divider = 0.5, dynamic keyBuilder = buildKey})
The layout with 32 keys and start with C
factory
PianoWidget.keys32f({double height = 56, double divider = 0.5, dynamic keyBuilder = buildKey})
The layout with 32 keys and start with F
factory
PianoWidget.keys36c({double height = 56, double divider = 0.5, dynamic keyBuilder = buildKey})
The layout with 36 keys and start with C
factory
PianoWidget.keys36f({double height = 56, double divider = 0.5, dynamic keyBuilder = buildKey})
The layout with 36 keys and start with F
factory
PianoWidget.keys37c({double height = 56, double divider = 0.5, dynamic keyBuilder = buildKey})
The layout with 37 keys and start with C
factory
PianoWidget.keys37f({double height = 56, double divider = 0.5, dynamic keyBuilder = buildKey})
The layout with 37 keys and start with F
factory
PianoWidget.keys49({double height = 56, double divider = 0.5, dynamic keyBuilder = buildKey})
The layout with 49 keys
factory
PianoWidget.keys54({double height = 56, double divider = 0.5, dynamic keyBuilder = buildKey})
The layout with 54 keys
factory
PianoWidget.keys61({double height = 56, double divider = 0.5, dynamic keyBuilder = buildKey})
The layout with 61 keys
factory
PianoWidget.keys76({double height = 56, double divider = 0.5, dynamic keyBuilder = buildKey})
The layout with 76 keys
factory
PianoWidget.keys88({double height = 56, double divider = 0.5, dynamic keyBuilder = buildKey})
The layout with 88 keys
factory

Properties

divider double
final
hashCode int
The hash code for this object.
no setterinherited
height double
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyBuilder → KeyBuilder
final
octaves List<Iterable<MapEntry<String, int>>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
whiteCount int
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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