SheenResumeCard class Music

The "Continue listening" card of long audio: the cover, the title, what is left, a progress line and a play button. Show it while a book or episode is unfinished.

SheenResumeCard(
  image: NetworkImage(book.cover),
  title: book.title,
  subtitle: 'Chapter 7 · 6 h 20 min left',
  progress: book.progress,
  onPlay: () => player.resume(book),
  onTap: () => openBook(book),
)
Inheritance

Constructors

SheenResumeCard({Key? key, required String title, String? subtitle, ImageProvider<Object>? image, double progress = 0, String? label, VoidCallback? onPlay, VoidCallback? onTap})
A card for title, progress of the way through.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
image → ImageProvider<Object>?
The cover, drawn as a book.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
The heading; SheenMusicStrings.continueListening by default.
final
onPlay → VoidCallback?
Plays from where it stopped.
final
onTap → VoidCallback?
Opens it.
final
progress → double
How far through, 0 to 1.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subtitle → String?
Where you are and what is left.
final
title → String
What is being listened to.
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