fromString method
Implementation
Visibility? fromString(String val) {
final override = {
'private': Visibility.private,
'public': Visibility.public,
}[val];
// ignore: unnecessary_this
return this.contains(override) ? override : null;
}