init static method

Future<AWResponseModel<bool>> init(
  1. String appId,
  2. String? appUserId
)

Implementation

static Future<AWResponseModel<bool>> init(
    String appId, String? appUserId) async {
  var result = await _channel
      .invokeMethod('init', {"appId": appId, "appUserId": appUserId});
  final model = getResponseModel(result);
  if (!model.result) {
    return AWResponseModel.sendFailed(model.msg);
  }
  return AWResponseModel.sendSuccess(true);
}