Skip to content

Commit 10257df

Browse files
committed
Format
1 parent f25348a commit 10257df

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/src/form_builder_validators.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ class FormBuilderValidators {
125125
static FormFieldValidator<T> defaultValue<T>(
126126
T defaultValue,
127127
FormFieldValidator<T> validator,
128-
) => (valueCandidate) => validator(valueCandidate ?? defaultValue);
128+
) =>
129+
(valueCandidate) => validator(valueCandidate ?? defaultValue);
129130

130131
/// [FormFieldValidator] that requires the field have a non-empty value.
131132
/// * [errorText] is the error message to display when the value is empty

test/form_builder_validators_test.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,10 +1209,11 @@ void main() {
12091209
}),
12101210
);
12111211

1212-
testWidgets(
1212+
testWidgets(
12131213
'FormBuilderValidators.defaultValue',
12141214
(WidgetTester tester) => testValidations(tester, (context) {
1215-
final validator = FormBuilderValidators.defaultValue<String>('default', FormBuilderValidators.alphabetical());
1215+
final validator = FormBuilderValidators.defaultValue<String>(
1216+
'default', FormBuilderValidators.alphabetical());
12161217
// Pass
12171218
expect(validator(null), isNull);
12181219
expect(validator('hello'), isNull);

0 commit comments

Comments
 (0)