September 2019
Beginner
512 pages
12h 52m
English
The pubspec file is in the heart of a Dart package, and to understand how to properly describe the package, we need to understand how this file is structured. This file is based on the yaml syntax, a common format used for configuration files, with a structure that is easy to read and follow. The pubspec file is as follows:
name: simple_package_structuredescription: A simple package exampleversion: 1.0.0homepage: https://www.example.comauthor: Alessandro Biessek <alessandrobiessek@gmail.com>environment: sdk: '>=2.0.0 <3.0.0' # check the dependencies section # below to understand deps versioningdependencies: json_serializable: ^2.0.1dev_dependencies: test: ^1.0.0
Read now
Unlock full access