writer library

Classes

DartScope
DatabaseWriter
Generates the Dart code put into a .g.dart file when running the generator.
DataClassWriter
GenerationOptions
Options that are specific to code-generation.
HashCodeWriter
QueryWriter
Writes the handling code for a query. The code emitted will be a method that should be included in a generated database or dao class.
ResultSetWriter
Writes a class holding the result of an sql query into Dart.
RowMappingWriter
Generates code mapping a row (represented as a Map) to positional and named Dart arguments.
Scope
A single lexical scope that is a part of a Writer.
TableOrViewWriter
Common writer for tables or views.
TableWriter
UpdateCompanionWriter
Writer
Manages a tree structure which we use to generate code.

Constants

highestAssignedIndexVar → const String

Functions

overrideEquals(Iterable<String> fields, String className, StringBuffer into) → void
Writes a operator == override for a class consisting of the fields into the buffer provided by into.
writeMemoizedGetter({required StringBuffer buffer, required String getterName, required String returnType, required String code, required GenerationOptions options, bool hasOverride = false}) → void
Writes the following dart code into the buffer:
writeMemoizedGetterWithBody({required StringBuffer buffer, required String getterName, required String returnType, required String code, required GenerationOptions options, bool hasOverride = false}) → void
Writes the following dart code into the buffer: