turn_gen 1.0.4
turn_gen: ^1.0.4 copied to clipboard
TurnGen is a set of scripts combined into a command line tool to minimize coding and simplify various tasks
1.0.4 #
- the
toStringmethod is now not overridden by theenumscript, but is used by default - added a hint if, when using the
datascript, the variable does not have the wordfinal
1.0.3 #
- fix bug in
enumscript
1.0.2 #
- fix fromMap method for
Enumtype
1.0.1 #
- Script
Enumnow allows 2 string parameters. ForMapmethods validation occurs on the first parameter example:
// turngen
const EnumPaymentStatus(this.value, this.name);
final String value;
final String name;
1.0.0 #
- added the ability to disable the
fromMap,toMapmethods in theunionscript by adding a comment above the class/* no: tomap frommap */similar todatascript - updated README.md
0.9.8-0.9.9 #
- now
fromMapmethod forenumtype can accept both index and name
0.9.7 #
- fixed work of
unionscript without parameters
0.9.6 #
- added
fromJsonandtoJsonmethods forunionscript - updated README.md
0.9.4 #
- fixed minor bugs in
unionscript
0.9.3 #
- added the
tomapandfromMapmethods for theunionscript
0.9.2 #
- added an extension for
enumscripts that makes it easier to check the value of an enum in a concise and readable way.
0.9.1 #
- after the release of dart 3 fixed a bug in the Enum script - The class 'Comparable' can't be used as a mixin because it's neither a mixin class nor a mixin.
- added automatic formatting after generation - with the command
dart format - added documentation to some open method
0.9.0 #
- slightly corrected the formatting of the output
0.8.9 #
- in data and enum script you can now initialize values with different characters
- updated README.md
0.8.8 #
- removed version number in generated files to make git cleaner
- fixed formatting
0.8.6-0.8.7 #
- fixed formatting
- added example
0.8.3-0.8.5 #
- fixed name variable in enum script
- Updated README.md
0.8.2 #
- added json test
- fixed exit from terminal on mac
- Updated README.md
0.8.1 #
- removed redundant logs
0.8.0 #
- added a command to automatically start the desired generator
dart run turn_gen - in the
fromValuemethod of theenumgenerator a correction was made to handle values of typedouble - removed
@deprecatedmethods from theenumgenerator - renamed the
show_method_commentssetting toshow_commentsin `pubspec.yaml - Updated README.md
0.7.1 #
- fix: name version
0.7.0 #
- added
buildcommand that looks through all files with text--TURN_GEN--and updates them to the latest version. Full commanddart run turn_gen build - Updated README.md
0.6.7 #
- improved
assetsgenerator
0.6.6 #
- improved
assetsgenerator - renamed file
AppAssetstoAssetPaths
0.6.5 #
- Now you can not set the path for the generated
assetsfile. Default is:lib/gen/ - Updated README.md
0.6.4 #
- fix assets generator
- Updated README.md
0.6.3 #
- changed the fromMap method for some types
0.6.2 #
- fix path when generating assets
0.6.1 #
- updated hints in the console when generating
- added the ability to auto-detect the types
List<enum>andList<enum?> - Updated README.md
0.6.0 #
- To simplify the process of generating
assets files, you no longer need to specify the path when starting the generator. Simply rundart run turn_gen assetsto initiate the generator. - Updated README.md
0.5.1 #
- Updated CHANGELOG.md.
0.5.0 #
- Improved - Removed additional comments in enum and asset generators. These comments are included when show_method_comments: true.
- Added additional console hints about setting show_method_comments.
- Updated README.md
0.4.7 #
- I improved the code by removing the
fromDynamicMapmethod, and in thefromMapmethod you changed the variable type toMap<dynamic, dynamic>instead ofMap<String, dynamic>. This method can now be used to convert nested JSON from Firebase -DataSnapshot. - Comments for
data classare disabled by default, but you can enable them by writing inpubspec.yamlthe valueshow_method_comments: true.
0.4.5 #
- Added
fromDynamicMapmethod todataclass, which works well where you need to convertMap<dynamic, dynamic>toMap<String, dynamic>. For example nested JSON from Firebase DataSnapshot - almost all places added doc comments
- Updated README.md
0.4.1 #
- minor fixes
0.4.0 #
- The script was completely redesigned to generate additional
enummethods - Removed scripts for a certain type of variable in the
enumconstructor, now only one script is used. - Updated README.md
0.3.2 #
- now any
implementsof the fakeunion classare added to the main - move
union classdocumentation comments of the fake class to the main class - Updated README.md
0.3.0 #
- added hints to
fromMapif value is empty - for all variables fromMapmethod now allows null value if all fields of the class are initialized (comment added: for example/* init: false */above all fields)
0.2.6 #
- added an error description and the name of the variable if the value is not initialized in the
fromMapmethod - fixed a problem with reading
boolinfrommap
0.2.5 #
- added hints to
fromMapif the value is empty forboolnumStringintenum - type
ThemeModeis now automatically defined asenum - added a hint if a variable does not have a type or only has a type
0.2.0 #
- now, when generating
data class, the type of the variable is automatically determined, and if this type is not inTurnGen, hints about this auto-detection appear - when generating a data class, you can now not specify an empty comment above each variable
/* */ - Updated README.md
0.1.1 #
- fixed output in json
List<data>
0.1.0 #
- Added ability to generate "union types"
- Adding hints to the data class generator
List<Map<String, dynamic>>support added to TurnGen
0.0.8 #
- if the value is
required, it now goes first to initialization since rulealways_put_required_named_parameters_first
0.0.7 #
- fixed
toMapandfromMapfor theMaptype - added for
enumtype - methodT mapConst<T>
0.0.6 #
- fixed work with mixin
equatable
0.0.5 #
- removed the dependency on
intl
0.0.4 #
- added support for configuring the
only: equatable - added a message if more than one value is used with the
only:key
0.0.3 #
- fix version intl
0.0.2 #
- Updated README.md
0.0.1 #
- Initial version