df_generate_dart_models 0.4.0 copy "df_generate_dart_models: ^0.4.0" to clipboard
df_generate_dart_models: ^0.4.0 copied to clipboard

unlisted

A tool to generate index/exports files for all Dart files in a directory.

example/example.dart

import 'models/model_test/model_test.dart';
import 'models/model_user/model_user.dart';

// dart genmdl_dart.dart -s ../example

void main() {
  final a = const ModelTest(
    users: [
      ModelUser(id: '123'),
    ],
    checks: [1, 2, 3, 4],
  );
  print(a);
  final b = a.mergeWith(const ModelTest(checks: [4, 5, 6]), deepMerge: false);
  print(b);
}