build_it 0.1.1 copy "build_it: ^0.1.1" to clipboard
build_it: ^0.1.1 copied to clipboard

discontinued
outdated

The `build_it` is a builder that representing various types of generators that mainly generate code for other generators (and builders), or generates ready-to-use code.

example/example.dart

import 'example_objects.g.dart';

void main() {
  final categories = _json.map((e) => Category.fromJson(e));
  for (final category in categories) {
    print('Category: ${category.name}');
    for (final product in category.products) {
      print('  Product: ${product.name}');
    }
  }
}

final _json = [
  {
    'id': 1,
    'name': 'Intel CPU',
    'products': [
      {'id': 1, 'name': 'Celeron'},
      {'id': 1, 'name': 'Pentium'},
      {'id': 1, 'name': 'Core i3'},
      {'id': 1, 'name': 'Core i5'},
      {'id': 1, 'name': 'Core i7'},
    ]
  },
  {
    'id': 2,
    'name': 'AMD CPU',
    'products': [
      {'id': 1, 'name': 'Sempron'},
      {'id': 1, 'name': 'Athlon'},
      {'id': 1, 'name': 'Phenom'},
      {'id': 1, 'name': 'Opteron'},
    ]
  }
];
1
likes
0
points
20
downloads

Publisher

unverified uploader

Weekly Downloads

The `build_it` is a builder that representing various types of generators that mainly generate code for other generators (and builders), or generates ready-to-use code.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

build, build_runner, code_builder, dart_style, json_annotation, json_serializable, meta, path, yaml

More

Packages that depend on build_it