Skip to content

Commit

Permalink
chore: fix analyzer error
Browse files Browse the repository at this point in the history
  • Loading branch information
francescovallone committed Jan 2, 2025
1 parent 3c592f9 commit f97272c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions bin/acanthis.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ void main(List<String> arguments) async {
final parsedList = list.tryParse(['Hello', 'World', 'hello']);

final number = acanthis.number().pow(2).gte(5);
//print(number.tryParse(3));
//print(parsed);
//print(parsedList);
print(number.tryParse(3));
print(parsed);
print(parsedList);

final union = acanthis.union([
acanthis.number(),
acanthis.string(),
]);

//print(union.tryParse(DateTime.now()));
print(union.tryParse(DateTime.now()));

// final schema = acanthis.object({
// 'email': acanthis.string().email(),
Expand Down Expand Up @@ -112,6 +112,5 @@ errors: ${encoder.convert(r.errors)}
transform: (value) => DateTime.parse(value),
);
final result = stringDate.tryParse('aaaaa');
//print(result);
return;
print(result);
}

0 comments on commit f97272c

Please sign in to comment.