dart-data-plugin icon indicating copy to clipboard operation
dart-data-plugin copied to clipboard

IDEA plugin for generating utility methods for Dart data classes

Results 15 dart-data-plugin issues
Sort by recently updated
recently updated
newest added

example `MyObject.copyWith(field1: null)` this will not set field1 to null value, old value remains

Per the example the generated toString looks like this: ``` @override String toString() { return 'Person{' + ' id: $id,' + ' _firstName: $_firstName,' + ' _lastName: $_lastName,' + '...

Hello, it would be great to have the support for generating `Equatable` related code. https://pub.dev/packages/equatable

It is a long time I touched this plugin, but here is a random idea. ### Flutter widget constructor generator It would be cool to have an automatic `key` generated...

I think better to rename fromMap and toMap to fromJson and toJson to make compatible with the package 'json_serializable'.Package 'json_serializable' need the method named 'fromJson'.Or I think you can provide...

enhancement

If variable type is DateTime use `DateTime.tryParse(map['key'])` instead of `map['key'] as DateTime` /closes #21

The plugin does not handle DateTime parser correctly ```dart class Person{ String? name; DateTime? birthday; // Constructos and other relevant code. factory Person.fromMap(Map map){ return Person( name: map['name'] as String?,...

Is there any plan for supporting "Bean Converter"? Like convert "PersonDo" to "PersonVo". Really need that, thanks very much. 😁

It would be nice to have an option to use double quotes for the Strings instead of single quotes. So, instead of having: ``` factory CategoryModel.fromMap(Map map) { return CategoryModel(...

In some cases, we might not want a field to be (de)serializable, is there any already present solution or it needs to be worked on?

enhancement