parseVisibilityFromEnum static method

String parseVisibilityFromEnum(
  1. Visibility visibility
)

Implementation

static String parseVisibilityFromEnum(Visibility visibility) {
  switch (visibility) {
    case Visibility.private:
      return 'private';
    case Visibility.public:
      return 'public';
  }
}