next method

Future<bool> next ()

Skip to the next song in the queue.

Implementation

Future<bool> next() async {
  if (Platform.isIOS) {
    var result = await playerChannel.invokeMethod('next');
    return result;
  } else {
    throw PlatformException(
        code: "Device is not iOS!",
        message:
            "Currently only iOS is supported. Feel free to contribute to Playify to help support Android.");
  }
}