BridgeMessageInfo constructor

BridgeMessageInfo({
  1. int? requestId,
  2. String? operationKey,
  3. Map<String, List<int>>? arguments,
  4. List<int>? result,
  5. BridgeEventInfo? event,
  6. BridgeException? exception,
  7. BridgeErrorCode? errorCode,
  8. String? errorMessage,
})

Implementation

factory BridgeMessageInfo({
  $core.int? requestId,
  $core.String? operationKey,
  $core.Map<$core.String, $core.List<$core.int>>? arguments,
  $core.List<$core.int>? result,
  BridgeEventInfo? event,
  BridgeException? exception,
  BridgeErrorCode? errorCode,
  $core.String? errorMessage,
}) {
  final $result = create();
  if (requestId != null) {
    $result.requestId = requestId;
  }
  if (operationKey != null) {
    $result.operationKey = operationKey;
  }
  if (arguments != null) {
    $result.arguments.addAll(arguments);
  }
  if (result != null) {
    $result.result = result;
  }
  if (event != null) {
    $result.event = event;
  }
  if (exception != null) {
    $result.exception = exception;
  }
  if (errorCode != null) {
    $result.errorCode = errorCode;
  }
  if (errorMessage != null) {
    $result.errorMessage = errorMessage;
  }
  return $result;
}