mirror of https://github.com/AMT-Cheif/drift.git
Fix typo in new override flag
This commit is contained in:
parent
161f7c0203
commit
7d962a1f01
|
@ -26,6 +26,6 @@ At the moment, moor supports these options:
|
|||
* `write_from_json_string_constructor`: boolean. Adds a `.fromJsonString` factory
|
||||
constructor to generated data classes. By default, we only write a `.fromJson`
|
||||
constructor that takes a `Map<String, dynamic>`.
|
||||
* `overrride_hash_and_equals_in_result_sets`: boolean. When moor generates another class
|
||||
* `override_hash_and_equals_in_result_sets`: boolean. When moor generates another class
|
||||
to hold the result of generated select queries, this flag controls whether moor should
|
||||
override `operator ==` and `hashCode` in those classes.
|
|
@ -3,4 +3,4 @@ targets:
|
|||
builders:
|
||||
moor_generator:
|
||||
options:
|
||||
overrride_hash_and_equals_in_result_sets: true
|
||||
override_hash_and_equals_in_result_sets: true
|
||||
|
|
|
@ -12,7 +12,7 @@ class MoorOptions {
|
|||
config['write_from_json_string_constructor'] as bool ?? false;
|
||||
|
||||
final overrideInResultSets =
|
||||
config['overrride_hash_and_equals_in_result_sets'] as bool ?? false;
|
||||
config['override_hash_and_equals_in_result_sets'] as bool ?? false;
|
||||
|
||||
return MoorOptions(writeFromString, overrideInResultSets);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue