isPaused static method

Future<bool> isPaused()

Check if paused

Implementation

static Future<bool> isPaused() async {
  try {
    final paused = await _methodChannel.invokeMethod('isPaused');
    return paused as bool? ?? false;
  } catch (e) {
    print('AudioPlayerPlatform.isPaused error: $e');
    return false;
  }
}