BaseGenerator class abstract

Base class for all Local2Dart generators.

This abstract class provides common functionality that all generators can use, such as file writing and naming conventions.

Implementers

Constructors

BaseGenerator(Local2DartConfig config, String packagePath)
Creates a new BaseGenerator instance.

Properties

config Local2DartConfig
The configuration for generation.
final
hashCode int
The hash code for this object.
no setterinherited
packagePath String
The path where the package should be generated.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

camelCase(String text) String
Converts a string to camelCase.
generate() Future<void>
Generates the code.
getDartType(String sqlType) String
Gets the Dart type for an SQL type.
getDefaultType(String dartType) String
Gets the default value for a Dart type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pascalCase(String text) String
Converts a string to PascalCase.
snakeCase(String text) String
Converts a string to snake_case.
toString() String
A string representation of this object.
inherited
writeFile(String path, String content) Future<void>
Writes content to a file.

Operators

operator ==(Object other) bool
The equality operator.
inherited