Skip to content

Commit 02f1989

Browse files
committed
Fixes
1 parent 8be0494 commit 02f1989

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

example/lib/main.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ void main() {
1010
runApp(const MyApp());
1111
}
1212

13+
/// The main application widget.
1314
class MyApp extends StatelessWidget {
15+
/// The main application widget constructor.
1416
const MyApp({super.key});
1517

1618
@override

lib/src/core/log_validator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import '../base_validator.dart';
55

66
class LogValidator<T> extends BaseValidator<T> {
77
const LogValidator(
8-
String Function(T? value)? this.log, {
8+
this.log, {
99
/// {@macro base_validator_error_text}
1010
super.errorText,
1111

lib/src/datetime/date_range_validator.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class DateRangeValidator extends BaseValidator<String> {
1313
});
1414

1515
final DateTime minDate;
16+
1617
final DateTime maxDate;
1718

1819
@override

lib/src/file/file_extension_validator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import '../base_validator.dart';
33

44
class FileExtensionValidator extends BaseValidator<String> {
55
const FileExtensionValidator(
6-
List<String> this.allowedExtensions, {
6+
this.allowedExtensions, {
77
/// {@macro base_validator_error_text}
88
super.errorText,
99

lib/src/network/ip_validator.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import '../base_validator.dart';
33

44
class IpValidator extends BaseValidator<String?> {
55
IpValidator({
6-
int this.version = 4,
6+
this.version = 4,
77

88
/// {@macro ipv4_template}
99
/// {@macro ipv6_template}
10-
RegExp? this.regex,
10+
this.regex,
1111

1212
/// {@macro base_validator_error_text}
1313
super.errorText,

lib/src/network/url_validator.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import '../../form_builder_validators.dart';
2-
import '../../localization/l10n.dart';
32
import '../base_validator.dart';
43

54
class UrlValidator extends BaseValidator<String?> {

lib/src/numeric/integer_validator.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import '../base_validator.dart';
33

44
class IntegerValidator extends BaseValidator<String> {
55
IntegerValidator({
6-
int? this.radix,
6+
this.radix,
77

88
/// {@macro base_validator_error_text}
99
super.errorText,

lib/src/numeric/range_validator.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import '../../form_builder_validators.dart';
2-
import '../../localization/l10n.dart';
32
import '../base_validator.dart';
43

54
class RangeValidator<T> extends BaseValidator<T> {

lib/src/usecase/usecase.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export 'credit_card_validator.dart';
77
export 'iban_validator.dart';
88
export 'isbn_validator.dart';
99
export 'json_validator.dart';
10+
export 'password_validator.dart';
1011
export 'ssn_validator.dart';
12+
export 'username_validator.dart';
1113
export 'uuid_validator.dart';
1214
export 'zip_code_validator.dart';
13-
export 'username_validator.dart';
14-
export 'password_validator.dart';

lib/src/usecase/username_validator.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import 'package:flutter/widgets.dart';
22

33
import '../../form_builder_validators.dart';
4-
import '../../localization/l10n.dart';
54
import '../base_validator.dart';
65

76
class UsernameValidator extends BaseValidator<String> {

0 commit comments

Comments
 (0)