setUserId static method

void setUserId(
  1. String userId
)

Implementation

static void setUserId(String userId) {
  if (userId == null) {
    print("userId cannot be null!");
  } else {
    Map<String, String> config = {"userId": userId};
    MethodChannel _channel = const MethodChannel('admost_flutter');
    _channel.invokeMethod('setUserId', config);
  }
}