getInfo method
Returns basic information about the package
defined in pubspec.yaml
.
Implementation
Future<Info> getInfo() async {
final content = await getContent();
return Info(
name: content['name'] as String?,
version: content['version'] as String?,
);
}