Fix typo in new override flag

This commit is contained in:
Simon Binder 2019-09-20 19:36:09 +02:00
parent 161f7c0203
commit 7d962a1f01
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
3 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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

View File

@ -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);
}