CustomMediaAction class

Custom action information used to define an action name and optional extras that are sent to AudioHandler.customAction when the associated media control is used.

Constructors

CustomMediaAction({required String name, Map<String, dynamic>? extras})
Creates a CustomMediaAction.
const

Properties

extras Map<String, dynamic>?
A map of additional data for the custom action.
final
hashCode int
The hash code for this object.
no setteroverride
name String
Custom action name
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Convert to a Map.
toString() String
A string representation of this object.
inherited

Operators

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