setScreenName static method

Future<void> setScreenName(
  1. String name
)

Set a custom name for the current screen. Useful for applications that don't use more than one activity or view controller.

This name is displayed for a given screenshot, and will override the name of the current screen.

Implementation

static Future<void> setScreenName(String name) async {
  TestFairyBase.prepareTwoWayInvoke();
  await TestFairyBase.channel.invokeMethod<void>('setScreenName', name);
}