setUser method

Future<bool> setUser(
  1. String identifier,
  2. String password
)

Sets the user credentials.
Provide the identifier and password that you have created with the Catapush dashboard or with the Catapush APIs.
You have to invoke this method at least once before starting the SDK.

Implementation

Future<bool> setUser(String identifier, String password) {
  return _channel.invokeMethod<Map<Object?, Object?>>('Catapush#setUser', {
    'identifier': identifier,
    'password': password,
  }).then((response) {
    return response!['result']! as bool;
  });
}