login static method

Future<void> login(
  1. String value
)

Logs in with the specified value.

This method invokes the native method login with the provided email.

Throws a PlatformException if the login fails.

value: The email address of the user to log in.

Implementation

static Future<void> login(String value) async {
  const platform = MethodChannel('mergnKotlinSDK');
  try {
    await platform.invokeMethod('login', {"email": value});
  } on PlatformException catch (e) {
    print("Failed to send attribute: '${e.message}'.");
  }
}