country_generator 3.0.0
country_generator: ^3.0.0 copied to clipboard
A generator for generating country object from countries json.
country_generator #
A generator for generating country in dart with countries.
Getting Started #
Install #
Add the following lines in your pubspec.yaml file
dev_dependencies:
build_runner: ^latest_version
country_generator: ^latest_version
Configure #
Add configuration at the bottom or add nothing to use default path
- default:
country_generator:
sourceFolder: countries
outputFolder: lib/gen
- customize
country_generator:
sourceFolder: your/submodule/path
outputFolder: your/output/path
Run #
flutter packages pub run build_runner build