ImpulsePlayerController class

Constructors

ImpulsePlayerController({void onReady()?, void onPlay()?, void onPause()?, void onFinish()?, void onError(String message)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
onError ↔ void Function(String message)?
getter/setter pair
onFinish ↔ void Function()?
getter/setter pair
onPause ↔ void Function()?
getter/setter pair
onPlay ↔ void Function()?
getter/setter pair
onReady ↔ void Function()?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
Manually disposes of a previously retained native player instance.
getDuration() Future<int>
getError() Future<String?>
getProgress() Future<int>
getState() Future<ImpulsePlayerState>
isPlaying() Future<bool>
keepAlive() Future<void>
Manually keeps the underlying native player alive beyond the lifetime of its associated view.
load(String url, {String? title, String? subtitle, Map<String, String> headers = const {}}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<void>
play() Future<void>
seek(int time) Future<void>
setCastEnabled(bool enabled) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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