author property

  1. @Deprecated('See https://dart.dev/tools/pub/pubspec#authorauthors')
String? author

If there is exactly 1 value in authors, returns it.

If there are 0 or more than 1, returns null.

Implementation

@Deprecated(
  'See https://dart.dev/tools/pub/pubspec#authorauthors',
)
String? get author {
  if (authors.length == 1) {
    return authors.single;
  }
  return null;
}