stopSession static method

Future<void> stopSession(
  1. String sessionId
)

Implementation

static Future<void> stopSession(String sessionId) async {
  try {
    await _channel.invokeMethod<void>('stopSession', {
      'sessionId': sessionId,
    });
  } on PlatformException catch (e) {
    throw WearablesError(
      code: e.code,
      description: e.message ?? 'Stop session failed',
    );
  }
}