SystemSoundType enum Null safety

A sound provided by the system.

These sounds may be played with SystemSound.play.

Constants

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.

const SystemSoundType(1)
click → const SystemSoundType

A short indication that a button was pressed.

const SystemSoundType(0)
values → const List<SystemSoundType>

A constant List of the values in this enum, in order of their declaration.

const List<SystemSoundType>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
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. [...]
override

Operators

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