updateName method

Future<void> updateName(
  1. String newName
)

Updates the session frame with a newName. This is generally used when the appropriate name for the Session Frame is not known at the time of its creation.

Method might throw Exception.

Implementation

Future<void> updateName(String newName) async {
  try {
    final arguments = {"newName": newName, "id": id};
    await channel.invokeMethod<void>('updateSessionFrameName', arguments);
  } on PlatformException catch (e) {
    throw Exception(e.details);
  }
}