df_generate_dart_models 0.7.0 df_generate_dart_models: ^0.7.0 copied to clipboard
A tool to generate index/exports files for all Dart files in a directory.
//.title
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
//
// Dart/Flutter (DF) Packages by DevCetra.com & contributors. The use of this
// source code is governed by an MIT-style license described in the LICENSE
// file located in this project's root directory.
//
// See: https://opensource.org/license/mit
//
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
//.title~
import 'package:df_generate_dart_models_core/df_generate_dart_models_core.dart';
import 'models/model_test/model_test.dart';
import 'models/model_user/model_user.dart';
void main() {
final a = const ModelTest(
users: [
ModelUser(
ref: DataRefModel(
collection: ['users'],
id: '123',
),
),
],
checks: [1, 2, 3, 4],
);
print(a);
final b = a.mergeWith(
const ModelTest(checks: [4, 5, 6]),
deepMerge: false,
);
print(b);
}