getAudioRoutes method

  1. @override
Future<List<AudioRouteData>?> getAudioRoutes()
override

Get audio routes

Implementation

@override
Future<List<AudioRouteData>?> getAudioRoutes() async {
  final audioRoutes = await callClientMethodChannel
    .invokeMethod<List<Object?>?>('getAudioRoutes');
  log("ExolvePlugin: callClientChannel: getAudioRoutes: audioRoutes = $audioRoutes");
  return audioRoutes
      ?.map((audioRoute) => AudioRouteData.fromMap(audioRoute as Map<Object?, Object?>))
      .toList();
}