getCodePageId method
Implementation
int getCodePageId(String? codePage) {
return codePages.firstWhere(
(CodePage cp) => cp.name == codePage,
orElse: () {
throw Exception(
"Code Page '$codePage' isn't defined for this profile",
);
},
).id;
}