fromString method

Visibility? fromString(
  1. String val
)

Implementation

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