isDocId static method

bool isDocId(
  1. dynamic docId
)

Implementation

static bool isDocId(docId) {
  if (docId is String || docId is num) {
    return true;
  } else {
    throw CloudBaseException(
      code: CloudBaseExceptionCode.INVALID_PARAM,
      message: 'Only for these two types(String | num)',
    );
  }
}