stop method

Future<bool> stop()

Stop

Implementation

Future<bool> stop() async {
  final success = await _service.stop(
    _state.selectedPlayer.isNotEmpty ? _state.selectedPlayer : null,
  );
  if (!success) {
    _updateState(_state.copyWith(errorMessage: 'Failed to stop'));
  }
  return success;
}