Converts a CodeNode to a formatted String, using the constructor parameters.
Using the official (dartfmt)https://github.com/dart-lang/dart_style/wiki/Formatting-Rules with the dart_style package
Note that this formatter may throw parsing exceptions.
You can use the CodeFormatter.unFormatted method when you need a code partial that can not be parsed by the Dart formatter
A (tree) model that represents Dart Code.
It contains a list of CodeNodes that is generated by using the constructor parameters, fields and or properties of the implementation of CodeModelCodeNodes can be:
A CodeNodeWithLibraryUri wraps an sub class.
It adds a LibraryUri alias as defined in the Imports
See: https://dart.dev/guides/language/language-tour#libraries-and-visibility
An Expression is a syntactic entity in the Dart programming language
that may be evaluated to determine its value
e.g.: 1 or or 1.1 or 1+2 or 'hello' or 'hello' + ' world' or user.name
See: https://dart.dev/guides/language/language-tour#operators
A collection of reserved Dart (key)words
Using a dollar prefix to prevent compiler issues (field names being keywords)
See https://dart.dev/guides/language/language-tour#keywords
adds a carriage return (CR) character.
This character is used as a new line character in most other non-Unix operating systems
Note that CodeFormatter may
Parameters can have any number of required positional Parameter definitions.
These can be followed either by named Parameter definitions or by optional positional Parameter definitions (but not both).
Parameter names must be unique.
A Statement is a syntactic unit of an imperative programming language that expresses some action to be carried out.
See: https://dart.dev/guides/language/language-tour#control-flow-statements
Refers to Type
For the Dart Type system, see: https://dart.dev/guides/language/type-system
For the Dart build in types, see: https://dart.dev/guides/language/language-tour#built-in-types
A Variable is used to store the value and refer the memory location in computer memory.
When we create a variable (with a VariableDefinition also known as variable declaration), the Dart compiler allocates some space in memory.
The size of the memory block of memory is depended upon the type of variable.