SheenSkipButton class Music

A "back 15" or "forward 30" button for long audio: a circular arrow with the number of seconds inside.

Like the other media controls it keeps its direction in right-to-left text. SheenTransportControls shows a pair when given onSkipBack and onSkipForward.

SheenSkipButton(seconds: 15, forward: false, onPressed: () => player.seekBy(-15))
Inheritance

Constructors

SheenSkipButton({Key? key, required int seconds, required bool forward, required VoidCallback? onPressed, double size = 56, Color? color})
A button that skips seconds ahead when forward, else back.
const

Properties

color → Color?
The glyph colour; the theme's text colour by default.
final
forward → bool
Ahead (true) or back.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onPressed → VoidCallback?
Called on a tap; null disables it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seconds → int
How far it skips, shown inside the arrow.
final
size → double
The hit area; the glyph is about 60 % of it.
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, int wrapWidth = 65}) → 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