setLayout method
Sets the call layout type (tile, sidebar, spotlight).
Implementation
Future<void> setLayout(LayoutType layoutType) async {
try {
await CometChatCallsPluginPlatform.instance.nativeSetLayout(layoutType.value);
} catch (e) {
throw CometChatCallsException(
ErrorCodeConstants.errorSetLayout,
'Failed to set layout',
e.toString(),
);
}
}