Lukas Generator Package help you to generate objects based on a template and custom params.

Usage

A simple usage example:

import 'package:lukas_generator/lukas_generator.dart';

main() {
  final template = StringBuffer();
  template.write('example template \n var varName = \$varName\$; \$foo\$');

  final generatedUnit = LukasGeneratorUnit(
    template: template,
    metadata: {'varName': 'custom string value', 'foo': 'bar'},
  );

  final parsed = generatedUnit.tryParse()?.toString() ?? '';

  print(parsed);
}

Libraries

lukas_generator
Support for doing something awesome. [...]