MavenDependency.fromString constructor

MavenDependency.fromString(
  1. String fullName
)

Implementation

factory MavenDependency.fromString(String fullName) {
  final components = fullName.split(':');
  if (components.length != 3) {
    throw ArgumentError('invalid name for maven dependency: $fullName');
  }
  return MavenDependency(components[0], components[1], components[2]);
}