json_config_annotation 0.1.1 icon indicating copy to clipboard operation
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
130
pub points
56%
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

Icon for licenses.BSD-3-Clause (LICENSE)

More

Packages that depend on json_config_annotation