load static method
Public factory
Implementation
static Future<CapabilityProfile> load({String name = 'default'}) async {
///
await ensureProfileLoaded();
final dynamic profile = __printCapabilities['profiles'][name];
if (profile == null) {
throw Exception("The CapabilityProfile '$name' does not exist");
}
final List<CodePage> list = <CodePage>[];
profile['codePages'].forEach((dynamic k, dynamic v) {
list.add(CodePage(int.parse(k as String), v as String));
});
// Call the private constructor
return CapabilityProfile._internal(name, list);
}