getMaxVersion method
Returns the maximum allowed version for the current user type.
Implementation
String? getMaxVersion(MaxVersionConfig config) {
if (userType == 'ant') {
return config.ant?.isNotEmpty == true ? config.ant : null;
}
return config.external?.isNotEmpty == true ? config.external : null;
}