stop method

void stop()

Implementation

void stop() async {
  if (Platform.isAndroid) {
    await ForegroundServiceHandler.stopForegroundService();
  } else {
    debugPrint("Error: Can only use foreground services on Android!");
  }
}