json_config_annotation 0.1.1 copy "json_config_annotation: ^0.1.1" to clipboard
json_config_annotation: ^0.1.1 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
140
pub points
47%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on json_config_annotation