You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An exception is thrown if the date value is set through WidgetTest.
testWidgets(
'Test Case: test date validator.',
(WidgetTester tester) async {
await app.main();
await tester.pumpAndSettle();
// Set a date to a text field.
await tester.enterText(find.byKey(ValueKey<String>('key')), '01/01/2002');
// tap Submit button here
});
Null check operator used on a null value
When the exception was thrown, this was the stack:
#0 DateInputFormatter.formatEditUpdate (package:pattern_formatter/date_formatter.dart:82:32)
...
...
date_formatter.dart:82:32
final splashes = resultText!.replaceAll(RegExp(r'[^/]'), '');
The text was updated successfully, but these errors were encountered:
claptv
changed the title
Null check operator used on a null value exception from data_formatter
Null check operator used on a null value exception from date_formatter
Aug 3, 2022
An exception is thrown if the date value is set through WidgetTest.
Null check operator used on a null value
When the exception was thrown, this was the stack:
#0 DateInputFormatter.formatEditUpdate (package:pattern_formatter/date_formatter.dart:82:32)
...
...
date_formatter.dart:82:32
final splashes = resultText!.replaceAll(RegExp(r'[^/]'), '');
The text was updated successfully, but these errors were encountered: