removeDisplay static method

Future<void> removeDisplay(
  1. String sessionId,
  2. String displayId
)

Implementation

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