Local2DartConfig class
Configuration model for Local2Dart command.
This class represents the parsed YAML configuration for local2dart generation. It provides type-safe access to configuration values and handles default values.
Constructors
-
Local2DartConfig({required int version, required String dirDatabase, required bool foreignKeyConstrainSupport, required Map<
String, dynamic> table, required Map<String, dynamic> query, required Map<String, dynamic> view, required Map<String, dynamic> seed, required Map<String, dynamic> trigger}) - Creates a new Local2DartConfig instance.
-
Local2DartConfig.fromMap(Map<
String, dynamic> map) -
Creates a Local2DartConfig from a map.
factory
Properties
- dirDatabase → String
-
Directory for database files.
final
- foreignKeyConstrainSupport → bool
-
Whether foreign key constraints are supported.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
query
→ Map<
String, dynamic> -
Query definitions.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
seed
→ Map<
String, dynamic> -
Seed data definitions.
final
-
table
→ Map<
String, dynamic> -
Table definitions.
final
-
trigger
→ Map<
String, dynamic> -
Trigger definitions.
final
- version → int
-
Database version.
final
-
view
→ Map<
String, dynamic> -
View definitions.
final
Methods
-
getQueries(
String tableName) → Map< String, dynamic> - Gets a query definition by table name.
-
getSeed(
String tableName) → Map< String, dynamic> ? - Gets seed data for a table.
-
getTable(
String name) → Map< String, dynamic> ? - Gets a table definition by name.
-
getTrigger(
String name) → Map< String, dynamic> ? - Gets a trigger definition by name.
-
getView(
String name) → Map< String, dynamic> ? - Gets a view definition by name.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited