fromMap static method

VolumeChangedEvent fromMap(
  1. Map<String, dynamic> map
)

Creates an event from a map.

Implementation

static VolumeChangedEvent fromMap(Map<String, dynamic> map) =>
    VolumeChangedEvent(
        level: map['level'] as int? ?? 0,
        type: _stringToAudioVolumeType(map['type'] as String? ?? 'none'));