Hi all
My test builds have just started failing with this error;
Error: Too few positional arguments: 1 required, 0 given.
The error relates to a component (a Drawer) that I haven't touched for days, and the build was working all of yesterday before failing this evening.
Any ideas how I can diagnose this?
The error is here;
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Upgrading build.gradle
Running Gradle task 'assembleDebug'...
lib/batches/new_batch_drawer/new_batch_drawer_widget.dart:453:87: Error: Too few positional arguments: 1 required, 0 given.
.elementAtOrNull()!
^
Target kernel_snapshot_program failed: Exception
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\Users\olive\AppData\Roaming\FlutterFlow\flutterflow\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 18s
Running Gradle task 'assembleDebug'... 19.1s
Error: Gradle task assembleDebug failed with exit code 1