setUserId static method

Future<void> setUserId(
  1. String id
)

Use this to tell TestFairy who the user is. It will help you to search the specific user in the TestFairy dashboard.

We recommend passing values such as email, phone number, or user id that your app may use.

Implementation

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