SystemSoundType enum Null safety

A sound provided by the system.

These sounds may be played with SystemSound.play.

Inheritance

Constructors

SystemSoundType()
const

Values

click → const SystemSoundType

A short indication that a button was pressed.

SystemSoundType()
alert → const SystemSoundType

A short system alert sound indicating the need for user attention.

Desktop platforms are the only platforms that support a system alert sound, so on mobile platforms (Android, iOS), this will be ignored. The web platform does not support playing any sounds, so this will be ignored on the web as well.

SystemSoundType()

Properties

hashCode int
The hash code for this object.
read-only, inherited
index int
A numeric identifier for the enumerated value.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<SystemSoundType>
A constant List of the values in this enum, in order of their declaration.
[click, alert]