Skip to content

Commit

Permalink
DCM lint
Browse files Browse the repository at this point in the history
  • Loading branch information
petrnymsa committed Apr 15, 2024
1 parent 7742163 commit 388c8c8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions glade_forms/lib/src/core/convert_error.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ class ConvertError<T> extends GladeInputError<T> with EquatableMixin implements
final Object? _convertError;

@override
// TODO(dcm): wait for DCM update.
// ignore: list-all-equatable-fields, wait for DCM update
List<Object?> get props => [input, devError, error, key, _convertError];

String get targetType => T.runtimeType.toString();
Expand Down
2 changes: 1 addition & 1 deletion glade_forms/lib/src/core/glade_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class GladeInput<T> {
'If type is not nullable, at least one of value or initialValue must be set',
);

final validatorInstance = validator?.call(GladeValidator<T>()) ?? GladeValidator<T>().build();
final validatorInstance = validator?.call(GladeValidator()) ?? GladeValidator<T>().build();

return GladeInput._(
value: (value ?? initialValue) as T,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ abstract class GladeValidatorError<T> extends GladeInputError<T> with EquatableM
String get devErrorMessage => devError(value);

@override
List<Object?> get props =>
// ignore: list-all-equatable-fields, wait for DCM update
[value, devError, key, error, isConversionError, isNullError];
List<Object?> get props => [value, devError, key, error, isConversionError, isNullError];

GladeValidatorError({
required this.value,
Expand Down

0 comments on commit 388c8c8

Please sign in to comment.