getRingerMode method Null safety

Future<AndroidRingerMode> getRingerMode()

(UNTESTED)

Implementation

Future<AndroidRingerMode> getRingerMode() async {
  return decodeEnum(AndroidRingerMode.values,
      (await _channel.invokeMethod<int>('getRingerMode'))!,
      defaultIndex: 2);
}