json_config_annotation 0.1.2 copy "json_config_annotation: ^0.1.2" to clipboard
json_config_annotation: ^0.1.2 copied to clipboard

Annotations for the configuration code-generator. This package does nothing without json_config_generator too.

example/README.md

import 'package:json_config_annotation/json_config_annotation.dart';
import 'dart:convert';
import 'package:flutter/services.dart';

part 'config.g.dart'; //{dart file name}.g.dart

@Configuration(
  environmentEnumName: 'Env',
  environments:[
    Environment(name:'dev', path:'assets/config/dev.json'),
    Environment(name:'prd', path:'assets/config/prd.json'),
  ],
)
class $Config{}
1
likes
160
points
83
downloads

Publisher

unverified uploader

Weekly Downloads

Annotations for the configuration code-generator. This package does nothing without json_config_generator too.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on json_config_annotation