validateId function
Implementation
void validateId(String? id) {
if (id == null || id.isEmpty) {
throw createError(
DitoError.invalidParameters,
'id is required and cannot be empty',
);
}
}
void validateId(String? id) {
if (id == null || id.isEmpty) {
throw createError(
DitoError.invalidParameters,
'id is required and cannot be empty',
);
}
}